Type T, object, & List

Nov 20 2009 6:04 PM
I have a method that receives an object parameter. In some instances, the actual type is a List of unknown type. I need to cast the parameter to a List and process the list items. I got close using Type.IsGenericType and GetGenericArguments(). Does anyone know how to do this?

Answers (5)