C# Lessons

Ref vs out #L5

Another short post about ref and out – keywords that are used to pass parameters to functions.Using them we have to also remember that in both cases, the parameters are passed as references (address) and not values. Ref In the case of ref, the variable must be initialized before passing it as a parameter. With …