Everyone knows
public class Test<T> where T : SomeBaseClass
But is there a way to restrict T to classes that exists in a namespace like
T
public class Test<T> where T in SomeNamespace
Best regards
No. There''s no way to constrain a generic type to a namespace.