Const function parameter in C#
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3826542/read-only-const-like-function-parameters-of-c-sharp">Read-only (&ldquo;const&rdquo;-like) function parameters of C#</a><br>
  <a href="http://stackoverflow.com/questions/4150478/why-there-is-no-const-member-method-in-c-sharp-and-const-parameter">why there is no const member method in c# and const parameter</a>  </p>
</blockquote>



<p>Apologies if this was already asked.</p>

<p>Having programmed in C++ in the past, I recall we could make a constant reference/pointer parameter in a method?</p>

<p>If my memory is correct, the below means, that the method cannot alter the reference and the reference itself is a constant reference.</p>

<h2>C++ example</h2>

<pre><code>void DisplayData(const string &amp;value) const
{
   std::count &lt;&lt; value &lt;&lt; endl;
}
</code></pre>

<p>Is there an equivalent in C# for methods in a class?</p>

<p>The reason why I'm asking is, I'm trying to pass a object by reference (for speed) and at the same time don't want anyone to alter it. </p>

<p>Thanks.</p>
