Export (0) Print
Expand All

Array Methods

The Array type exposes the following members.

  NameDescription
Public method Static member AsReadOnly<T> Returns a read-only wrapper for the specified array.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework BinarySearch Overloaded. Searches a one-dimensional sorted Array for a value, using a binary search algorithm.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Clear Sets a range of elements in the Array to zero, to false, or to null, depending on the element type.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Clone Creates a shallow copy of the Array.
Public method Static member 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.
Public method Static member ConvertAll<TInput, TOutput> Converts an array of one type to an array of another type.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Copy Overloaded. Copies a range of elements in one Array to another Array and performs type casting and boxing as required.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework CopyTo Overloaded. Copies all the elements of the current one-dimensional Array to the specified one-dimensional Array.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework CreateInstance Overloaded. Initializes a new instance of the Array class.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method Static member Exists<T> Determines whether the specified array contains elements that match the conditions defined by the specified predicate.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Static member Find<T> Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire Array.
Public method Static member FindAll<T> Retrieves all the elements that match the conditions defined by the specified predicate.
Public method Static member FindIndex Overloaded. 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 method Static member FindLast<T> Searches for an element that matches the conditions defined by the specified predicate, and returns the last occurrence within the entire Array.
Public method Static member FindLastIndex Overloaded. 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 method Static member ForEach<T> Performs the specified action on each element of the specified array.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetEnumerator Returns an IEnumerator for the Array.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetLength Gets a 32-bit integer that represents the number of elements in the specified dimension of the Array.
Public method GetLongLength Gets a 64-bit integer that represents the number of elements in the specified dimension of the Array.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetLowerBound Gets the lower bound of the specified dimension in the Array.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetType Gets the type of the current instance. (Inherited from Object.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetUpperBound Gets the upper bound of the specified dimension in the Array.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetValue Overloaded. Gets the value of the specified element in the current Array.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework IndexOf Overloaded. Returns the index of the first occurrence of a value in a one-dimensional Array or in a portion of the Array.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Initialize Initializes every element of the value-type Array by calling the default constructor of the value type.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework LastIndexOf Overloaded. Returns the index of the last occurrence of a value in a one-dimensional Array or in a portion of the Array.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Resize<T> Changes the number of elements of an array to the specified new size.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Reverse Overloaded. Reverses the order of the elements in a one-dimensional Array or in a portion of the Array.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework SetValue Overloaded. Sets the specified element in the current Array to the specified value.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Sort Overloaded. Sorts the elements in one-dimensional Array objects.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ToString Returns a string that represents the current object. (Inherited from Object.)
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework TrueForAll<T> Determines whether every element in the array matches the conditions defined by the specified predicate.
Top

  NameDescription
Public Extension Method AsQueryable Converts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension Method Cast Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension Method OfType Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Top

  NameDescription
Explicit interface implemetation Private method Supported by the .NET Compact Framework Supported by the XNA Framework IList.Add Implements IList.Add. Throws a NotSupportedException in all cases.
Explicit interface implemetation Private method Supported by the .NET Compact Framework Supported by the XNA Framework IList.Clear Sets all elements in the Array to zero, to false, or to null, depending on the element type.
Explicit interface implemetation Private method Supported by the .NET Compact Framework Supported by the XNA Framework IList.Contains Determines whether an element is in the Array.
Explicit interface implemetation Private method Supported by the .NET Compact Framework Supported by the XNA Framework IList.IndexOf Searches for the specified object and returns the index of the first occurrence within the current one-dimensional instance.
Explicit interface implemetation Private method Supported by the .NET Compact Framework Supported by the XNA Framework IList.Insert Implements IList.Insert. Throws a NotSupportedException in all cases.
Explicit interface implemetation Private method Supported by the .NET Compact Framework Supported by the XNA Framework IList.Remove Implements IList.Remove. Throws a NotSupportedException in all cases.
Explicit interface implemetation Private method Supported by the .NET Compact Framework Supported by the XNA Framework IList.RemoveAt Implements IList.RemoveAt. Throws a NotSupportedException in all cases.
Top

Community Additions

ADD
Show:
© 2014 Microsoft