Hi all,

I have an interface (IMessageDispatcher) which has an extension method (DispatchMessages) containing code that would be identical in all classes that implement it.
I don't want to code the identical method in every class that implements the interface.
If i leave out the method in the class i get a compiler error, class does not implement interface, but i don't want to implement it as there is an extension method already there.

I've tried casting to the interface to call the extension method, but it still calls my class' wrapper method, so i get a stack overflow:
Code:
public void DispatchMessages()
{
     (this as IMessageDispatcher).DispatchMessages();
}
How can i avoid writing identical code in all classes that implement this interface?

Cheers!!