IsArray Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets a value indicating whether the Type is an array.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

public bool IsArray { get; }

Property Value

Type: System..::..Boolean
true if the Type is an array; otherwise, false.

The IsArray property returns false for the Array class.

To check for an array, use code such as typeof(Array).IsAssignableFrom(type).

If the current Type represents a generic type, or a type parameter in the definition of a generic type or generic method, this property always returns false.

This property is read-only.

Show: