Type::IsArray Property
Silverlight
Gets a value indicating whether the Type is an array.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
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.
The following example demonstrates using the IsArray property.
Note: |
|---|
To run this example, see Building Examples That Use a Demo Method and a TextBlock Control. |
This code produces the following output:
Type is System.Array. IsArray? False Type is System.Int32[]. IsArray? True
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Community Additions
ADD
Show:
Note: