What is the difference between ref
and out
parameters in .NET? What are the situations where one can be more useful than the other? What would be a code snippet where one can be used and another can’t?
What is the difference between ref
and out
parameters in .NET? What are the situations where one can be more useful than the other? What would be a code snippet where one can be used and another can’t?