C# 7 Features Worth Knowing
carlosschults.net
carlosschults.net
int quantity;
declaration. Leaving it in there defeats the purpose of the example which is meant to show that the declaration is not necessary :-)That being said, I think this post highlights some of more beneficial features. Most of the others (maybe with the exception of type pattern matching) will likely lead, I fear, to less decipherable code.
[0] https://blogs.msdn.microsoft.com/dotnet/2017/03/09/new-featu...
I'm not convinced by the new switch statement either, but I'll suspend judgement until I see some examples in the wild. The examples Microsoft are giving don't strike me as a good idea.