I have an interface resembling this:
interface IMyInterface<T>
{
void MyFunction(T myParam);
}
However it is designed to be used in such a way that T will always be the implementing class, like such:
class MyClass : IMyInterface<MyClass>
{
...
}
Is there a way to reference the implementing class within the interface definition without this template declaration? It seems like there should be something, but I can't find any information on it.