| ref  Before passing ref parameter the   sender class must instantiate the ref argument, so ref requires additional   bandwidth to send the object both ways. ref allows the called methods to modify the   object to which the reference refers because the reference itself is being   passed by reference. out An out argument is created by the   called method and it is returned to the caller. Declaring an out   method is useful when you want a method to return multiple values. A method   that uses an out parameter can still a variables as a return type but it can also return   one or more objects to a calling method as out parameters. | 
Saturday, December 29, 2007
ref vs out parameter
Subscribe to:
Post Comments (Atom)
 
 
No comments:
Post a Comment