Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

System.Collections.Generic.ListExtensions

Morten Aune Lyrstad edited this page Apr 16, 2022 · 51 revisions

IndexNamespace Index

ListExtensions Class

public abstract sealed class ListExtensions

Namespace: System.Collections.Generic
Assembly: VRage.Library.dll

Methods

static void AddArray<T>(this List<T> list, T&#91] itemsToAdd)

static void AddArray<T>(this List<T> list, T&#91] itemsToAdd, int itemCount)

static void AddHashsetCasting<T1, T2>(this List<T1> list, HashSet<T2> hashset)

static void AddList<T>(this List<T> list, List<T> itemsToAdd)

static void AddOrInsert<T>(this List<T> list, T item, int index)

static void AssertEmpty<T>(this List<T> list)

static T AtMod<T>(this List<T> list, int index)

static T AtMod<T>(this ListReader<T> list, int index)

static int BinaryIntervalSearch<T>(this IList<T> self, T value, IComparer<T> comparer = default)

static int BinaryIntervalSearch<T>(this IList<T> self, Func<T, bool> less)

static int BinaryIntervalSearch<T>(this IList<T> self, T value, Comparison<T> comparison)

static void ClearAndTrim<T>(this List<T> list, int maxElements)

static void EnsureCapacity<T>(this List<T> list, int capacity)

static ClearToken<T> GetClearToken<T>(this List<T> list)

static void InsertInOrder<T>(this List<T> self, T value, IComparer<T> comparer)

static void InsertInOrder<T>(this List<T> self, T value)

static bool IsSorted<T>(this List<T> self, IComparer<T> comparer)

static bool IsValidIndex<T>(this List<T> list, int index)

static T MaxBy<T>(this IEnumerable<T> source, Func<T, float> selector)

static TItem MaxBy<TItem, TKey>(this IEnumerable<TItem> source, Func<TItem, TKey> selector, IComparer<TKey> comparer = default)

static T MinBy<T>(this IEnumerable<T> source, Func<T, float> selector)

static void Move<T>(this List<T> list, int originalIndex, int targetIndex)

static TValue Pop<TValue>(this List<TValue> self)

static void RemoveAtFast<T>(this List<T> list, int index)

static void RemoveAtFast<T>(this IList<T> list, int index)

static void RemoveIndices<T>(this List<T> list, List<int> indices)

static void SortNoAlloc<T>(this List<T> list, Comparison<T> comparator)

static void Swap<T>(this List<T> list, int a, int b)

static O&#91] ToArray<I, O>(this IList<I> collection, Func<I, O> selector)

static T&#91] GetInternalArray<T>(this List<T> list)

Obsolete: Due to changes required for XBOX this method is obsolete. Do not use it, as now it simply does list.ToArray

Clone this wiki locally