How do I call a member method and pass a primitive type (Value Type) by

 Posted by Pandians on 7/21/2009 | Category: C# Interview questions | Views: 2616

public bool GetValue( ref  int returnValue );

This will pass the numeric by reference.You can modify the value of
returnValue within the body of GetValue and it will persist when the method
call returns.

Asked In: In General | Alert Moderator 

Comments or Responses

Login to post response