title: Pass by Value in C#
body: <p>How can I pass an object of a "MyClass" (C#) by Parameter-by-Value to a method? example:</p>
  
  <pre><code>MyClass obj = new MyClass();
  MyClass.DontModify(obj); //Only use it!
  Console.Writeline(obj.SomeIntProperty);
  </code></pre>
  
  <p>...</p>
  
  <pre><code>public static void DontModify(MyClass a)
  {
      a.SomeIntProperty+= 100;// Do something more meaningful here
      return;
  }
  </code></pre>