Is there any way to determine if an object is a generic list? I\'m not going to know the type of the list, I just know it\'s a list. How can I determine that?
Try:
if(yourList.GetType().IsGenericType) { var genericTypeParams = yourList.GetType().GetGenericArguments; //do something interesting with the types.. }