How can I determine if a property is a kind of array.
Example:
public bool IsPropertyAnArray(PropertyInfo property) { // return true if type is I
public static bool IsGenericEnumerable(Type type) { return type.IsGenericType && type.GetInterfaces().Any( ti => (ti == typeof (IEnumerable<>) || ti.Name == "IEnumerable")); } public static bool IsEnumerable(Type type) { return IsGenericEnumerable(type) || type.IsArray; }