Interviews2 answers
What is the difference between ref and out keywords in Method in C#?
2 Answers
Please refer to the following link to know the differences between REF and OUT Parameters in C#,
http://onlydifferencefaqs.blogspot.in/2012/08/difference-between-ref-and-out.html
Umar AliPosted Sep 1, 2012, 3:31 AM EDT
out parameter doesn't require any intialization and is the additional output for the function.
ref parameter requires intialization and ref parameters data can be modofied.
Kamal RawatPosted Aug 31, 2012, 9:45 PM EDT
