The following code fails to compile:
class MyClass<T> : where T : MyClass <T>{}
Is there any way to solve this? I have used the following workaround but I was wondering if there is a better way
class MyClass <T> : IMyClass where T : IMyClass {}
interface IMyClass {}