ListExt ClassList<T> extensions.

Inheritance Hierarchy

System.Object
  UltimateXR.Extensions.System.Collections.ListExt
Namespace: UltimateXR.Extensions.System.Collections
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public static class ListExt


The ListExt type exposes the following members.

Methods

NameDescription
Public methodStatic memberIndexOf<T> Gets the index of a given item in a list.
Public methodStatic memberRandomElement<T> Returns a random element from the list.
Public methodStatic memberRandomElementsWithoutRepetition<T> Returns a list with n random elements from a list without repetition.
Public methodStatic memberRandomElementsWithoutRepetitionExcept<T> Returns a list with n random elements from a list without repetition. An additional list can be provided to exclude elements from appearing in the results.
Public methodStatic memberShuffled<T> Returns a list with the input list elements shuffled.

See Also

Reference

UltimateXR.Extensions.System.Collections Namespace