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