title: Can I pass primitive types by reference in C#?
body: <p>I know complex types are passed by Reference in C# and primitive types are passed by Value. Can I pass primitive types by reference in C#?</p>
  
  <p><strong>Update:</strong></p>
  
  <p>Thanks for answers, but my example is?</p>
  
  <pre><code>void test(object x) {
  
  }
  
  long y = 1;
  
  test(ref y);
  </code></pre>
  
  <p>This throw this exception: <strong>The 'ref' argument type doesn´t match parameter type</strong></p>