Difference between attributes (properties) of OUT and Ref ?
What is the difference between attributes (properties) of OUt and Ref Keyword in C#?.Do these Keywords belong to the C# new features?.Can anyone tell me the difference between the functionality of OUT and Ref keyword.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Packiaraj SanthiyaguRank #659 · 3.6K reputationPosted Jul 13, 2018, 5:16 PM EDT
Hi AbdurRahman,
Ref pass the two way from caller to calle and back
Out is one way it sends data back from calle to caller and any data from caller is discarded.
Bryian TanRank #396 · 6.3K reputationPosted Jul 13, 2018, 8:08 PM EDT