VitzzViperzz
Well-known member
Hello,
I am reading a book on C# and we are covering functions in C#. The book is also covering how References and Out are used in C# to pass arguments. But I am slightly baffled.
I started to understand parameters in functions and how they are used until I got to Out parameters.
This is where I started to scratch my head a little. My first question is why are they used? I looked at MSDN but the explanation was way too complicated. The only bit I understood was the fact that they signify a reference parameter.
Could someone give a simple explanation as to what they do and why they are useful?
Cheers
I am reading a book on C# and we are covering functions in C#. The book is also covering how References and Out are used in C# to pass arguments. But I am slightly baffled.
I started to understand parameters in functions and how they are used until I got to Out parameters.
This is where I started to scratch my head a little. My first question is why are they used? I looked at MSDN but the explanation was way too complicated. The only bit I understood was the fact that they signify a reference parameter.
Could someone give a simple explanation as to what they do and why they are useful?
Cheers