Class ListUtils
Contains static methods related to lists and collections.
public static class ListUtils
- Inheritance
-
ListUtils
Methods
- GetSelectedItems<T>(Action, Func<int>, Func<int, T>)
Retrieves a list of selected items by executing the specified update action and item retrieval functions.
- IndexOfRange<T>(IList<T>, IEnumerable<T>)
Finds the indices of the specified items in the given collection.
- MoveItemToFront<T>(List<T>, T)
Moves the specified item to the front of the list, if it exists.
- RouteCollectionChange(object?, NotifyCollectionChangedEventArgs, ICollectionChangeRouter)
Routes a collection change event to the appropriate handler based on the action type.
- SetCount<T>(IList<T>, int, Func<T>)
Changes the number of elements in the list.