I´m trying to do the following:
I have a class with a virtual method like this:
public virtual Event<T> Execute<T>(T message)
And that´s what I want:
Event T can be different of T message. For example: sometimes I need a function like this:
public override Event<Bitmap> Execute(string message)
But of course, I get the following error "no suitable method found to override".
Is there any way to do this? Use 2 types of generic objects using this override?
Note: I can change the virtual method, but the other classes always have to inherit this one.
Thank you!