Reading redirected child output seems to be an easy task. But there are developers that struggle with child process hanging because of console write / read deadlocks. And deadlocks are never easy to investigate.
I often hear questions about running sub-process in parent’s console. People got confused about how to make sure that the child process uses the same console as the parent.
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 […]
There were new keywords introduced in C# 5 – async and await. But not everyone knows that they were forbidden in catch and finally blocks. It has been fixed with C# 6 release.
One more C# 6 syntactic sugar feature is static using. The feature eliminate explicit reference to the type when invoking a static method.