I have a generic function that I want to know how to write.
List something; public int countItems(List Items) { // He
do you mean:
if(typeof(T) == typeof(Something)) {...}
?
Note that having generics depend hugely on the T (and act differently) may mean what you are trying to do isn't actually very generic...