Share via


Array Members

The following tables list the members exposed by the Array type.

Protected Constructors

Name Description
Protected Method Array Initializes an instance of the Array class.

Public Properties

Name Description
Public Property IsFixedSize Gets a value indicating whether a specific array has a fixed size.
Public Property IsReadOnly Gets a value indicating whether a specific array is read-only.
Public Property IsSynchronized Gets a value indicating whether access to a specific array is synchronized.
Public Property Length Gets a 32-bit integer that represents the total number of objects in all the dimensions of a specific array.
Public Property SyncRoot Gets an object that you can use to synchronize access to a specific array.

Public Methods

Name Description
Public Method Static BinarySearch Overloaded. Searches a one-dimensional sorted array for a specified value, using a binary search algorithm.
Public Method Static Clear Sets a range of objects in a specified array to 0 (zero), to false, or to a null reference, depending on the object type.
Public Method Clone Creates a shallow copy of an array.
Public Method Static Copy Overloaded. Copies a specified range of objects from an array to another array and performs type casting and boxing, as required.
Public Method CopyTo Copies all of the objects from a one-dimensional array (source array) to another one-dimensional array (destination array), starting at the specified index number in the destination array. You specify this index number as a 32-bit integer.
Public Method Static CreateInstance Creates a one-dimensional array of the specified type and length, with zero-based indexing.
Public Method Equals (Inherited from Object.)
Public Method GetEnumerator Gets an IEnumerator object for a specified array.
Public Method GetHashCode (Inherited from Object.)
Public Method GetType (Inherited from Object.)
Public Method GetValue Gets the value of the object at a specified position in a one-dimensional array.
Public Method Static IndexOf Overloaded. Returns the index number of the first occurrence of a specified object (if any) in a one-dimensional array or in a specified range within that array.
Public Method ReferenceEquals (Inherited from Object.)
Public Method ToString (Inherited from Object.)

Protected Methods

Name Description
Protected Method Finalize (Inherited from Object.)
Protected Method MemberwiseClone (Inherited from Object.)

Explicit Interface Implementations

Name Description
Explicit Interface ImplementationMethod System.Collections.IList.Add Adds an object to an array.
Explicit Interface ImplementationMethod System.Collections.IList.Clear Sets all of the objects in a specific array to 0 (zero), to false, or to a null reference, depending on the object type.
Explicit Interface ImplementationMethod System.Collections.IList.Contains Determines whether a specified object is contained in a specific array.
Explicit Interface ImplementationMethod System.Collections.IList.IndexOf Searches for a specified object in a one-dimensional array and returns the index number of the first occurrence of that object (if any) in the array.
Explicit Interface ImplementationMethod System.Collections.IList.Insert Inserts an object at a specified location (index number) in an array.
Explicit Interface ImplementationMethod System.Collections.IList.RemoveAt Removes the object at a specified location (index number) in an array.
Explicit Interface ImplementationMethod System.Collections.IList.Remove Removes a specified object from an array.
Explicit Interface ImplementationMethod System.Collections.ICollection.Count Gets the number of objects contained in a specific array.

See Also

Reference

Array Class
System Namespace