title: Limiting generic types in C#
body: <p>I have a generic class <code>MyClass&lt;T&gt;</code> where <code>T</code> should <strong>only</strong> be those types which can be compared.</p>
  
  <p>This would mean only numeric types and classes where methods for the relational operators have been defined. How do I do this ?</p>