public bool IsList(object value)
{
Type type = value.GetType();
// Check if type is a generic list of any type
}
¿Cuál es la mejor manera de comprobar si el objeto dado es una lista, o se puede convertir a una lista?¿Cómo verifico si un valor dado es una lista genérica?
Tal vez a encontrar respuesta desde aquí http://stackoverflow.com/questions/755200/how-do-i-detect-that-an-object -is-a-generic-collection-and -what-types-it-contiene –