I want to determine if a generic object type (\"T\") method type parameter is a collection type. I would typically be sending T through as a Generic.List but it could be any co
I love generics. In this method T must have a public and parameterless constructor which means you can not use IList for T. You must use List
T
IList
List
public static T IsEnumerable() where T : new() { if (new T() is IEnumerable) { }