BACK
TOP
C# 7 Local Functions
Matías Creimerman - Buenos Aires, Argentina - 2017-02-14

In C# 7, now you can declare local functions, for example:

public int Run(int code){
int Mode(int i){
if (i > 10 )
return 0;
return i + 1;
}
//code
return Mode(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