1.

I Was Trying To Use An Out Int Parameter In One Of My Functions. How Should I Declare The Variable That I Am Passing To It?

Answer»

You should declare the VARIABLE as an int, but when you pass it in you MUST specify it as ‘out’, LIKE the following: int i; FOO(out i); where foo is declared as FOLLOWS:
[return-type] foo(out int o) { }

You should declare the variable as an int, but when you pass it in you must specify it as ‘out’, like the following: int i; foo(out i); where foo is declared as follows:
[return-type] foo(out int o) { }



Discussion

No Comment Found