reference parameters in C#

A parameter declared with a ref modifier is a reference parameter:


Code Snippet
  1. object myObject = new object();
  2.   ProcessObject(refmyObject);
  3. ...
  4. static void ProcessObject(ref object aObject)  {}

Post a Comment