I am trying to determine if a runtime type is some sort of collection type. What I have below works, but it seems strange that I have to name the types that I believe to be coll
You can use linq, search for an interface name like
yourobject.GetType().GetInterfaces().Where(s => s.Name == "IEnumerable")
If this has values is a instance of IEnumerable.
IEnumerable