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

Total Post:48

Posted on    May-20-2011 3:39 AM

 C# C# 

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

Awadhendra Tiwari

Total Post:126

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