Home > DeveloperSection > Forums > Difference between ref and out keyword in c#.
James Smith

Total Post:48

Points:336
Posted on    May-20-2011 3:39 AM

 C# C# 
Ratings:


 1 Reply(s)
 1689  View(s)
Rate this:
Hi...
Can any one explain me that what is difference between ref and out keywords in c#.


Awadhendra Tiwari

Total Post:126

Points:882
Posted on    May-20-2011 3:55 AM

Ref tells the compiler that the object is initialized before entering the function, while out tells the compiler that the object will be initialized inside the function.

Don't want to miss updates? Please click the below button!

Follow MindStick