PHP function_exists/class_exists equivalent in C#
<p>I am looking for an alternative of these two functions in asp.net/c#.</p>

<pre><code>if(function_exists('foo'))
{
    $returned = foo($bar);
}
if(class_exists('foo'))
{
    $fooclass = new foo($bar);
}
</code></pre>

<p>Thanks in advacne.</p>
