Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static class: RT.Util.ExtensionMethods.CollectionExtensions

Summary

Provides extension methods on various collection types or interfaces in the System.Collections.Generic namespace such as IList<T>.

Static methods

void
AddRange<T>(this HashSet<T> set, IEnumerable<T> values)
Adds several values into a HashSet<T>.
void
BinarySearch<TK, TV>(this SortedList<TK, TV> list, TK key, out int index1, out int index2)
Performs a binary search for the specified key on a SortedList<T1, T2>. When no match exists, returns the nearest indices for interpolation/extrapolation purposes. (see also remarks)
void
EnqueueRange<T>(this Queue<T> queue, IEnumerable<T> values)
Enqueues several values into a Queue<T>.
void
Pop<T>(this Stack<T> stack, int count)
Pops the specified number of elements from the stack. There must be at least that many items on the stack, otherwise an exception is thrown.
void
RemoveRange<T>(this List<T> list, IEnumerable<T> values)
Removes several values from a List<T>.
void
SortBy<T, TBy>(this List<T> list, Func<T, TBy> selector)
Sorts the specified list by the specified selector.
void
SortBy<T, TBy>(this T[] array, Func<T, TBy> selector)