Executing a function of an uncasted object
<p>I am implementing a web control that gets an object (as an argument) with a certain function -- lets call it DoStuff() -- the object can belong to different classes, which are all derived from an abstract class -- lets call it SuperClass -- this SuperClass does not have the DoStuff() method.</p>

<p>So my question is: Is there a way in C# to call a method of an Object on runtime if this method exists in the object without having to cast it to the derived classes.</p>

<p>Something like (I know this does not work but I think it expresses better what I would like to accomplish): </p>

<pre><code>if(myObject.Functions["DoStuff"] != null){
    myObject.executeFunction("DoStuff");
} 
</code></pre>

<p>Is this at all possible??</p>
