May 2018
Intermediate to advanced
300 pages
7h 35m
English
C# language has always had the ref keyword, which allows you to use and return reference to variables defined elsewhere. C# 7 adds another feature, ref locals and returns, which improves performance and allows you to declare helper methods that were not possible with the earlier versions of the language. The ref locals and returns keyword have some restrictions—you cannot use them with the async methods and you cannot return a reference to a variable with the same execution scope.