Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
System Namespace
Array Class
Array Methods
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
Array Methods

Updated: November 2007

The Array type exposes the following members.

  NameDescription
AsReadOnly<(Of <(T>)>) Returns a read-only wrapper for the specified array.
BinarySearchOverloaded. Searches a one-dimensional sorted Array for a value, using a binary search algorithm.
Clear Sets a range of elements in the Array to zero, to false, or to nullNothingnullptra null reference (Nothing in Visual Basic), depending on the element type.
Clone Creates a shallow copy of the Array.
ConstrainedCopy Copies a range of elements from an Array starting at the specified source index and pastes them to another Array starting at the specified destination index. Guarantees that all changes are undone if the copy does not succeed completely.
ConvertAll<(Of <(TInput, TOutput>)>) Converts an array of one type to an array of another type.
CopyOverloaded. Copies a range of elements in one Array to another Array and performs type casting and boxing as required.
CopyToOverloaded. Copies all the elements of the current one-dimensional Array to the specified one-dimensional Array.
CreateInstanceOverloaded. Initializes a new instance of the Array class.
Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Exists<(Of <(T>)>) Determines whether the specified array contains elements that match the conditions defined by the specified predicate.
Finalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Find<(Of <(T>)>) Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire Array.
FindAll<(Of <(T>)>) Retrieves all the elements that match the conditions defined by the specified predicate.
FindIndexOverloaded. Searches for an element that matches the conditions defined by a specified predicate, and returns the zero-based index of the first occurrence within an Array or a portion of it.
FindLast<(Of <(T>)>) Searches for an element that matches the conditions defined by the specified predicate, and returns the last occurrence within the entire Array.
FindLastIndexOverloaded. Searches for an element that matches the conditions defined by a specified predicate, and returns the zero-based index of the last occurrence within an Array or a portion of it.
ForEach<(Of <(T>)>) Performs the specified action on each element of the specified array.
GetEnumerator Returns an IEnumerator for the Array.
GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
GetLength Gets a 32-bit integer that represents the number of elements in the specified dimension of the Array.
GetLongLength Gets a 64-bit integer that represents the number of elements in the specified dimension of the Array.
GetLowerBound Gets the lower bound of the specified dimension in the Array.
GetType Gets the Type of the current instance. (Inherited from Object.)
GetUpperBound Gets the upper bound of the specified dimension in the Array.
GetValueOverloaded. Gets the value of the specified element in the current Array.
IndexOfOverloaded. Returns the index of the first occurrence of a value in a one-dimensional Array or in a portion of the Array.
Initialize Initializes every element of the value-type Array by calling the default constructor of the value type.
LastIndexOfOverloaded. Returns the index of the last occurrence of a value in a one-dimensional Array or in a portion of the Array.
MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Resize<(Of <(T>)>) Changes the size of an array to the specified new size.
ReverseOverloaded. Reverses the order of the elements in a one-dimensional Array or in a portion of the Array.
SetValueOverloaded. Sets the specified element in the current Array to the specified value.
SortOverloaded. Sorts the elements in one-dimensional Array objects.
ToString Returns a String that represents the current Object. (Inherited from Object.)
TrueForAll<(Of <(T>)>) Determines whether every element in the array matches the conditions defined by the specified predicate.
Top
  NameDescription
AsQueryable Converts an IEnumerable to an IQueryable. (Defined by Queryable.)
Cast Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
OfType Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Top
  NameDescription
IList..::.Add Implements IList..::.Add. Throws a NotSupportedException in all cases.
IList..::.Clear Sets all elements in the Array to zero, to false, or to nullNothingnullptra null reference (Nothing in Visual Basic), depending on the element type.
IList..::.Contains Determines whether an element is in the Array.
IList..::.IndexOf Searches for the specified object and returns the index of the first occurrence within the current one-dimensional instance.
IList..::.Insert Implements IList..::.Insert. Throws a NotSupportedException in all cases.
IList..::.Remove Implements IList..::.Remove. Throws a NotSupportedException in all cases.
IList..::.RemoveAt Implements IList..::.RemoveAt. Throws a NotSupportedException in all cases.
Top
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker