I have a generic function that I want to know how to write.
List something; public int countItems(List Items) { // He
if (something.GetType() == items.GetType()) ...
This will compare the types of the actual objects.