C# 7.0 brings some features to out variables. These new features help us write cleaner code and handle out variables better. This blog post provides samples of these new features in C# 7.0 and as a surprise, it also demonstrates what the compiler is doing with these new features.
Inline out Variables
Let’s start with a piece of code that demonstrates how TryParse() and some TrySomethingElse() methods work.