I know I can make a method like
private T MyFun<T>()
where T : IMyInterface
{...}
Can I do the reverse, i.e. where T does not implement IMyInterface? The specific use case is that I don't want to allow nullables, but I'm curious just in general.