- C# 7 and .NET Core Cookbook
- Dirk Strauss
- 41字
- 2021-07-03 00:11:55
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.