Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
System Namespace
Array Class
Array Methods

  Switch on low bandwidth view
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

The Array type exposes the following members.

  NameDescription
Public methodStatic memberAsReadOnly<(Of <(T>)>)Returns a read-only wrapper for the specified array.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkBinarySearchOverloaded. Searches a one-dimensional sorted Array for a value, using a binary search algorithm.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkClearSets 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.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkCloneCreates a shallow copy of the Array.
Public methodStatic memberConstrainedCopyCopies 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.
Public methodStatic memberConvertAll<(Of <(TInput, TOutput>)>)Converts an array of one type to an array of another type.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkCopyOverloaded. Copies a range of elements in one Array to another Array and performs type casting and boxing as required.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkCopyToOverloaded. Copies all the elements of the current one-dimensional Array to the specified one-dimensional Array.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkCreateInstanceOverloaded. Initializes a new instance of the Array class.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkEquals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public methodStatic memberExists<(Of <(T>)>)Determines whether the specified array contains elements that match the conditions defined by the specified predicate.
Protected methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkFinalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodStatic memberFind<(Of <(T>)>)Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire Array.
Public methodStatic memberFindAll<(Of <(T>)>)Retrieves all the elements that match the conditions defined by the specified predicate.
Public methodStatic memberFindIndexOverloaded. 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.
Public methodStatic memberFindLast<(Of <(T>)>)Searches for an element that matches the conditions defined by the specified predicate, and returns the last occurrence within the entire Array.
Public methodStatic memberFindLastIndexOverloaded. 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.
Public methodStatic memberForEach<(Of <(T>)>)Performs the specified action on each element of the specified array.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetEnumeratorReturns an IEnumerator for the Array.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetLengthGets a 32-bit integer that represents the number of elements in the specified dimension of the Array.
Public methodGetLongLengthGets a 64-bit integer that represents the number of elements in the specified dimension of the Array.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetLowerBoundGets the lower bound of the specified dimension in the Array.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetType Gets the Type of the current instance. (Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetUpperBoundGets the upper bound of the specified dimension in the Array.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetValueOverloaded. Gets the value of the specified element in the current Array.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIndexOfOverloaded. Returns the index of the first occurrence of a value in a one-dimensional Array or in a portion of the Array.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkInitializeInitializes every element of the value-type Array by calling the default constructor of the value type.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkLastIndexOfOverloaded. Returns the index of the last occurrence of a value in a one-dimensional Array or in a portion of the Array.
Protected methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkMemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkResize<(Of <(T>)>)Changes the size of an array to the specified new size.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkReverseOverloaded. Reverses the order of the elements in a one-dimensional Array or in a portion of the Array.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkSetValueOverloaded. Sets the specified element in the current Array to the specified value.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkSortOverloaded. Sorts the elements in one-dimensional Array objects.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkToString Returns a String that represents the current Object. (Inherited from Object.)
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkTrueForAll<(Of <(T>)>)Determines whether every element in the array matches the conditions defined by the specified predicate.
Top
  NameDescription
Public Extension MethodAsQueryable Converts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension MethodCastConverts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension MethodOfTypeFilters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Top
  NameDescription
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIList..::.AddImplements IList..::.Add. Throws a NotSupportedException in all cases.
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIList..::.ClearSets all elements in the Array to zero, to false, or to nullNothingnullptra null reference (Nothing in Visual Basic), depending on the element type.
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIList..::.ContainsDetermines whether an element is in the Array.
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIList..::.IndexOfSearches for the specified object and returns the index of the first occurrence within the current one-dimensional instance.
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIList..::.InsertImplements IList..::.Insert. Throws a NotSupportedException in all cases.
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIList..::.RemoveImplements IList..::.Remove. Throws a NotSupportedException in all cases.
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIList..::.RemoveAtImplements 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
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker