I can do this:
void MyMethod<T>() where T : class { } Is there anything like this?
void MyMethod<T>() where T : interface { } I'd prefer not to specify the interface name explicitly.
The alternative is that I can pass in an argument that's constrained by class and throw an exception if typeof(T).IsInterface returns false, but that's not as clean as a constraint.