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);
}
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);
}