Ref returns and ref locals in C# 7.0

added by DotNetKicks
1/26/2018 1:23:51 PM

2 Kicks, 277 Views

C# 7.0 introduces ref returns and ref locals. Main goal of these new features is to make it easier for developers to pass around references to value types instead of copies of their values. This is important when working with large data structures that are implemented as value types.