Difference between ref and out keyword in c#.

Total Post:48

Points:336
C# 
C#
 2138  View(s)
Ratings:
Rate this:
Hi...
Can any one explain me that what is difference between ref and out keywords in c#.
  1. Post:126

    Points:882
    Re: Difference between ref and out keyword in c#.

    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.

Answer