What is the easier way to know if a type param implements an interface in c# 2.0?
For example, given a type param method i'm looking for something like the part in bold

> void MyMethod< T >() {    
> if ( **typeof(T).Implements( *IMyInterface* )** )
{

>       //Do something   
else

>       //Do something else 
}

Anwers using C# 3.0 are also welcome, but first drop the .NET 2.0 ones please ;)
What is the easier way to know if a type param implements an interface in c# 2.0?
===

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

> void MyMethod< T >() {    
> if ( **typeof(T).Implements( *IMyInterface* )** )
{

>       //Do something   
else

>       //Do something else 
}

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