- C# 7 and .NET Core Cookbook
- Dirk Strauss
- 56字
- 2021-07-03 00:11:52
Out variables
C# 7.0 has taken a fresh look at out variables. This is a small change, but really one that improves the readability and flow of the code. Previously, we first had to declare a variable to use as an out parameter in a method. In C# 7.0 we no longer need to do that.