DIFFERENCE BETWEEN REF AND OUT KEYWORD IN C#.

James Smith

Total Post:48

Points:336
Posted by  James Smith
C# 
C#
 1891  View(s)
Ratings:
Rate this:
Hi...
Can any one explain me that what is difference between ref and out keywords in c#.
  1. Awadhendra Tiwari

    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

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!