-
Notifications
You must be signed in to change notification settings - Fork 123
System.Collections.Generic.ListExtensions
← Index ← Namespace Index
public abstract sealed class ListExtensions
Namespace: System.Collections.Generic
Assembly: VRage.Library.dll
static void AddArray<T>(this List<T> list, T[] itemsToAdd)
static void AddArray<T>(this List<T> list, T[] 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 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[] ToArray<I, O>(this IList<I> collection, Func<I, O> selector)
static T[] 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
Do you have questions, comments, suggestions for improvements? Is there something I can do better? Did I make a mistake? Please add an issue here, and prefix your issue title with Wiki. Thank you, your help will be very appreciated!