Is there a way to iterate (through foreach preferably) over a collection using reflection? I\'m iterating over the properties in an object using reflection, and when the pr
If you're not using an instance of the object but rather a Type, you can use the following:
// type is IEnumerable if (type.GetInterface("IEnumerable") != null) { }