Mono Class Library: System.Array Overview | MembersSystem.Array.Clear Method |
Sets the specified range of elements in the specified Array to zero, false, or to a null reference, depending on the element type. [Edit]
|
Type Reason ArgumentNullException array is null. [Edit] ArgumentOutOfRangeException index < array.GetLowerBound(0).
length < 0.
index and length do not specify a valid range in array (i.e. index + length > array.GetLowerBound(0) + array.Length ).
[Edit]
Reference-type elements will be set to null. Value-type elements will be set to zero, except for bool elements, which will be set to false. [Edit]
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0