What is the size of the parameter when the parameter is an array?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/967402/are-arrays-or-lists-passed-by-default-by-reference-in-c">Are arrays or lists passed by default by reference in c#?</a>  </p>
</blockquote>



<p>On my machine a pointer is 32 bits, therefore a function that passes a class object will be passing 32 bits (the pointer that is the reference to the class object). I keep hearing contradictory things about arrays in c sharp, that they are reference types, and that they are passed by value. So could someone please tell me how many bits a function that passes an array of 5 floats will use in passing that array? Is it the size of a pointer, or 5 * 32 the size of 5 floats?</p>
