title: Is range variable possible in C# (.NET)
body: <p>I'm looking for some class or data type to allow me define a range for it.<br>
  This is the pseudo code which I'm looking for :</p>
  
  <pre><code>[Range(0, 75)] int ChildAge;
  </code></pre>
  
  <p>This range rule should be applied to any int which this Age is assigned like following</p>
  
  <pre><code>var MotherAge = ChildAge;
  MotherAge = 100; 
  </code></pre>
  
  <p>MotherAge should be set to 75 and this is what I'm looking for.</p>