+ 1

The ref keyword in methods in C#

Waht function does the little word ref have ?

9th Mar 2019, 5:51 PM
Cesar Andres
Cesar Andres - avatar
2 Respostas
+ 2
//Passing an argument by reference. When used in a method's parameter list, the ref keyword indicates that an argument is passed by reference, not by value. The effect of passing by reference is that any change to the argument in the called method is reflected in the calling method.
9th Mar 2019, 6:59 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 1
Thank you that helped me very much !!
9th Mar 2019, 7:44 PM
Cesar Andres
Cesar Andres - avatar