<p>For example, given a type param method i'm looking for something like the part in bold</p>

<blockquote>
  <p>void MyMethod&lt; T >() {<br>
  if ( <strong>typeof(T).Implements( <em>IMyInterface</em> )</strong> )
  {</p>

<pre><code>  //Do something   
</code></pre>
  
  <p>else</p>

<pre><code>  //Do something else 
</code></pre>
  
  <p>}</p>
</blockquote>

<p>Anwers using C# 3.0 are also welcome, but first drop the .NET 2.0 ones please ;)</p>

Type.IsAssignableFrom
```
```
if(typeof(IMyInterface).IsAssignableFrom(typeof(T)))
{
  // something
}
else
{
  // something else
}
```
```