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 ;)