Wednesday, May 28, 2014

Argument is 'value' while parameter is declared as 'ref'

This means that instead of handing in a ref variable like so in C#...

DoSomething(Whatever);

 
 

That you need to do this:

DoSomething(ref Whatever);

No comments:

Post a Comment