Click here to hide categories Click here to show left categories

User: Home          welcome : Guest          Log In / Register here     




Difference between ref & out parameters

Ref = Reference, when parsed to a method, the method references that original variable and doesnt create another instance. So if you make a change to a var parsed into that method when ref is used, it will affect the calling method out = Out is a little different in that you can return more than one value from a method apart from return statement.

Share this article   |    Print    |    Article read by 2091 times
Author:
Guest
Guest user is that user who have done some activity on website without login. Activity contains commenting on any article, uploading an image on website etc.
Related Articles:
Related Interview Questions: No related interview question