ArrayCreateInstance Method (Type, Int32) |
Creates a one-dimensional
Array of the specified
Type and length, with zero-based indexing.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static Array CreateInstance(
Type elementType,
int length
)
Parameters
- elementType
- Type: SystemType
The Type of the Array to create. - length
- Type: SystemInt32
The size of the Array to create.
Return Value
Type:
ArrayA new one-dimensional
Array of the specified
Type with the specified length, using zero-based indexing.
Exceptions See Also