Deconstruction is a nice way to consume tuples. It’s a syntax that allows splitting a tuple into variables.
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 […]
Clear collection initialization is possible only thanks to collection initializers. It’s syntax suger for calling ‘Add’ method.