Interviews5 answers
What are ref and out parameters?
5 Answers
4
Karan AggarwalPosted Apr 13, 2019, 2:41 AM EDT
3
Karan AggarwalPosted Apr 13, 2019, 2:40 AM EDT
http://www.c-sharpcorner.com/UploadFile/7c64d7/all-about-ref-and-out-type-parameters/
SharadPosted Jun 29, 2015, 1:10 AM EDT
ref and out are the output parameters that returns the output of the method to the program.
the difference between ref and out is:
when ref is used, the variables we are substituting while calling a method must be initialized but optional in case of out.
Navratna PawalePosted Sep 17, 2014, 3:00 PM EDT
http://www.codeproject.com/Tips/792490/ref-and-out-Parameters-in-Csharp
Simi TkdPosted Sep 3, 2014, 10:24 AM EDT




