Can a class return a static instance of itself? (in c#)
<p>Right now my class is set up as:</p>

<p><code>enum Unit{Inches,Centimeters};</code></p>

<p>Later on I have a step that sets all of the properties of each of these units into my classes instance variables.  For example:</p>

<pre><code>int unitBase; //10 for metric, 16 for american
int label;
switch(unit)
{
    case Unit.Inches: unitBase = 16; unitLabel = "\"";break;
    case Unit.Centimeters: unitBase = 10; unitLabel = "cm";break;
}
</code></pre>

<p>I would rather store this all in a Unit class or struct.  Then, I would like to be able to access it in the same way you access colors, for example.  You say <code>Color.Blue</code> for a blue color, I would like to say <code>Unit.Inches</code> for inches... That is why I dont make a unit base class and simply extend it.</p>

<p>I know that there is a way to do this!  Could anyone enlighten me?</p>

<p>Thanks!</p>
