How can I determine if a property is a kind of array.
Example:
public bool IsPropertyAnArray(PropertyInfo property)
{
// return true if type is I
If you want to know if the property is an array, it's actually very easy:
property.PropertyType.IsArray;
edit
If you want to know if it's a type that implements IEnumerable, as do all "collection types", it's not very complicated either:
return property.PropertyType.GetInterface("IEnumerable") != null;