BACK
TOP
C# 7 New support for out variables
Matías Creimerman - Buenos Aires, Argentina - 2017-02-14

In C# 7 you can declare an out variable right at the point of usage:

public void Get(){
GetData(out int x);
//code
}
This content is property of Matias Creimerman
Any misuse of this material will be punishable
This work is licensed under a
Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License
Creative Commons License