Abstract Base Class
abstract class Base { public abstract void Method<T>(T args) { } } Derived Class several of these exist, each with a replacement for T
class Derived : Base { public override void Method<int>(int args) { } } Now, I know this isn't supported, but I need it because somewhere else in my code
class AnotherBaseClass<T, E> where E : Base { E e; // Will be actually one of the derived classes T t; // Simple types like string or int // I want this to work basically public void Func() { e.Method(t); } } this is going on.
What is the easiest solution to this? If I am able to do this, it will save me from writing a lot of code.