C#


C# 7.0 – Deconstruction

Deconstruction is a nice way to consume tuples. It’s a syntax that allows splitting a tuple into variables.


C# 7.0 – Tuples 1

Tuples first appeared in C# with .NET Framework 4.0. They were supposed to be a lightweight alternative for small classes that were created if a method had to return more than one value.


All C# 6 features with short examples

It’s time to sum up all C# 6 features. Here is a list of all goodness with short examples implemented and tested in Visual Studio 2015. nameof String interpolation Null-conditional (?. and ?[]) and null-coalescing (??) operators Index initializers Extension methods visible in collection initializers Exception filters Auto-property initializers Expression-bodied […]


C# 6 features – Static using 2

One more C# 6 syntactic sugar feature is static using.  The feature eliminate explicit reference to the type when invoking a static method.