C# 7 and .NET Core Cookbook
上QQ阅读APP看书,第一时间看更新

Ref returns and locals

Passing objects by reference in C# is nothing new. This is done using the ref keyword. In C# 7.0, however, you can now return objects by reference and store these objects in a local variable by reference.