Suppose I create collection like
Collection<IMyType> coll;
Then I have many implelentations of IMyTypem
like, T1, T2, T3...
Then I want know if the collection coll contains a instance of type T1. So I want to write a method like
public bool ContainType( <T>){...}
here the param should be class type, not class instance. How to write code for this kind of issue?