Share via


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)

Syntax

'Declaration
Public ReadOnly Property IsArray As Boolean
public bool IsArray { get; }
public:
property bool IsArray {
    bool get ();
}
member IsArray : bool with get
function get IsArray () : boolean

Property Value

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

Remarks

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.

.NET Framework Security

See Also

Reference

Type Class

System Namespace