How to avoid multiple method overriding in C#?
<p>I have a DLL, that we bought and I can't access its source. However, for the problem that I'm now facing, I've been told that I must inherit from a class in the DLL, and override one of its methods.</p>

<p>I tried it and it works quite well, as expected. My problem now is that I have quite a few classes where I need to do the same thing, and don't want to repeat the same code so many times. Although all of those classes inherit from the same DLL class, it doesn't look good to me to write the same code in all of them.
This is the code for one class:</p>

<pre><code>public class MyClass : DllClass
{
    protected override void MethodFromDll()
    {
       //here I inserted my code and it works ok
    }
}
</code></pre>

<p>Thanks</p>
