How to know if a PropertyInfo is a collection February 8, 2023 by Tarik if (typeof(IEnumerable).IsAssignableFrom(prop.PropertyType) && prop.PropertyType != typeof(string))