C# 7.0 Out Vars and Ref Returns

added by DotNetKicks
2/1/2017 3:36:22 PM

2 Kicks, 417 Views

C# 7.0 offers a great list of new features. Some of them I've already written about, such as expression bodied members, tuples, binary literals, and digit separators. This article shows other new features: out vars, ref locals, and ref returns. Passing by Value Declaring a parameter of a value type, the value is allocated within...