Click here to Skip to main content
15,886,873 members

Comments by ankum16 (Top 2 by date)

ankum16 1-Feb-14 5:42am View    
Still I am not clear with explanation. Here lets assume I have put ref keywords while passing variables to the method. Here variables are already initialized.

MyMethod(x, ref a, ref b); And it will use the same memory location only as its reference type. Now what is difference between MyMethod(x, ref a, ref b) and MyMethod(x, a, b), if both behaves in same way.
ankum16 1-Feb-14 5:41am View    
Still I am not clear with explanation. Here lets assume I have put ref keywords while passing variables to the method. Here variables are already initialized.

MyMethod(x, ref a, ref b); And it will use the same memory location only as its reference type. Now what is difference between MyMethod(x, ref a, ref b) and MyMethod(x, a, b), if both behaves in same way.