Colleagues,
Correct me if I'm wrong: in the signature/call like this
the both (or any, for that matter) arguments after the "ref" are passed by reference - correct?
TIA!
On the footnote: I can't recall, neither find anywhere, where I've seen this rule, that any argument after "ref" is passed by reference... or I'm mixing it up with "Optional" in VB? Acute case of CRS. :-(
"With aging, eyesight is 2nd thing to go, and I can't recall what the 1st one is..."
Regards,
Ilya
Correct me if I'm wrong: in the signature/call like this
Code:
SomeFunction(int iArg1, string cStr1, ref int iArg2, string cStr2)
the both (or any, for that matter) arguments after the "ref" are passed by reference - correct?
TIA!
On the footnote: I can't recall, neither find anywhere, where I've seen this rule, that any argument after "ref" is passed by reference... or I'm mixing it up with "Optional" in VB? Acute case of CRS. :-(
"With aging, eyesight is 2nd thing to go, and I can't recall what the 1st one is..."
Regards,
Ilya