Difference between ref and out keyword in c#.

Total Post:48

Points:336

C# 
C#
 2327  View(s)
Ratings:
Rate this:
Hi...
Can any one explain me that what is difference between ref and out keywords in c#.
  1. 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

Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.