I\'d like to code a function like the following
public void Foo(System.Type t where t : MyClass) { ... }
In other words, the argument type
What you want could theoretically be done with attributes. But this is much clearer (imo) and does exactly the same thing:
public void Foo(MyClass m) { Type t = m.GetType(); // ... }