C# Array

20 functions

Array.SortArray.Sort(array)

Sorts the elements in an entire array using the default comparer.

Array.ReverseArray.Reverse(array)

Reverses the sequence of the elements in the entire array.

Array.IndexOfArray.IndexOf(array, value)

Searches for the specified object and returns the first index.

Array.FindArray.Find<T>(array, match)

Searches for an element that matches the conditions defined by a predicate.

Array.FindAllArray.FindAll<T>(array, match)

Retrieves all elements that match the conditions defined by a predicate.

Array.ExistsArray.Exists<T>(array, match)

Determines whether any element matches the conditions defined by a predicate.

Array.CopyArray.Copy(sourceArray, destArray, length)

Copies a range of elements from one array to another.

Array.ClearArray.Clear(array, index, length)

Sets a range of elements in an array to the default value.

Array.ResizeArray.Resize<T>(ref array, newSize)

Changes the number of elements of a one-dimensional array.

List.Addlist.Add(item)

Adds an object to the end of the List.

List.Removelist.Remove(item)

Removes the first occurrence of a specific object from the List.

List.RemoveAtlist.RemoveAt(index)

Removes the element at the specified index of the List.

List.Insertlist.Insert(index, item)

Inserts an element into the List at the specified index.

List.Containslist.Contains(item)

Determines whether an element is in the List.

List.Countlist.Count

Gets the number of elements contained in the List.

List.Sortlist.Sort()

Sorts the elements in the entire List using the default comparer.

List.Findlist.Find(match)

Searches for an element that matches the conditions defined by a predicate.

List.FindAlllist.FindAll(match)

Retrieves all elements that match the conditions defined by a predicate.

List.ForEachlist.ForEach(action)

Performs the specified action on each element of the List.

List.Clearlist.Clear()

Removes all elements from the List.