C# - Determine if a property is an array by reflection
How can I determine if a property is an array.

Example:

    public bool IsPropertyAnArray(PropertyInfo property)
    {
        // return true if type is IList<T>, IEnumerator<T>, ObservableCollection<T>, etc...
    }
C# - Determine if a property is an array by reflection
===

How can I determine if a property is an array.

Example:

    public bool IsPropertyAnArray(PropertyInfo property)
    {
        // return true if type is IList<T>, IEnumerator<T>, ObservableCollection<T>, etc...
    }