↑ Grab this Headline Animator

Tuesday, September 16, 2008

Difference Between Ref and out keywords?

Both are useful when we want to pass the reference in order to modify the original value inside the function and return the modified values.

The difference is that out “key word” gives us the advantage of not making it compulsory to initialize the parameters before passing where as Ref accepts only the initialized parameters.

Submit this story to DotNetKicks

No comments:

Post a Comment

Post your comments/questions/feedback for this Article.


Latest Articles