Share via


Array.Clear Method

Sets a range of objects in a specified array to 0 (zero), to false, or to a null reference, depending on the object type.

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

Syntax

[MethodImplAttribute]
public static void Clear (
         Array array,
         int index,
         int length
)

Parameters

  • array
    The array containing the range of objects you want to clear.
  • index
    The starting index number of the range of objects you want to clear.
  • length
    The length of the range (the number of objects) you want to clear.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

Array Class
Array Members
System Namespace