Is there a way to define a getter function in C# as ReadOnly like VB.NET?
<p>In C#, it is possible to define a <code>readonly</code> getter function by not defining the set function like so:</p>

<pre><code>private int _id;

public int Id
{

   get { return _id; }
   // no setter defined
}
</code></pre>

<p>in VB.NET</p>

<pre><code>Private _id as Integer
Public Readonly Property Id() As Integer
    Get
       Return _id
    End Get
End Property
</code></pre>

<p>Is it possible to tag such a function as <code>readonly</code> like you can in VB .NET in order to be more verbose?</p>
