title: C#: Restricting Types in method parameters (not generic parameters)
body: <p>I'd like to code a function like the following</p>
  
  <pre><code>public void Foo(System.Type t where t : MyClass)
  { ... }
  </code></pre>
  
  <p>In other words, the argument type is <code>System.Type</code>, and I want to restrict the allowed <code>Type</code>s to those that derive from <code>MyClass</code>.</p>
  
  <p>Is there any way to specify this syntactically, or does <code>t</code> have to be checked at runtime?</p>