title: MinValue & MaxValue attribute for properties
body: <p>Is it possible to make attribute which can limit minimum or maximum value of numbers.</p>
  
  <p>Example:</p>
  
  <pre><code>[MinValue(1), MaxValue(50)]
  public int Size { get; set; }
  </code></pre>
  
  <p>and when i do <code>Size = -3;</code> value of <code>Size</code> must be 1.</p>
  
  <p>I searched in Google and can't find single example about this behavior, maybe because it is not possible to make?</p>
  
  <p>I'm gonna use these attributes in property grid therefore having automatic validation can be handy.</p>
  
  <p>Currently I workaround like this to limit minimum value:</p>
  
  <pre><code>    private int size;
  
      [DefaultValue(8)]
      public int Size
      {
          get
          {
              return size;
          }
          set
          {
              size = Math.Max(value, 1);
          }
      }
  </code></pre>
  
  <p>So this acts like MinValue(1)</p>