Is there a way to pass on an out parameter?
I want the out parameter to not be set in the function itself, but to be set in a function I call.
I'm unsure if I just got the syntax wrong. Here is what I tried:
bool func1(out int additionalReturn)
{
//sample code
additionalReturn = 0;
return true;
}
bool func2(out int additionalReturn)
{
return func1(additionalReturn);
}
The keyword
outin the calling function allows this. The syntax is like this: