Class ListExt
- Namespace
- ONITwitchLib
- Assembly
- ONITwitchLib.dll
Provides additional utilities for working with lists.
[PublicAPI]
public static class ListExt
- Inheritance
-
ListExt
- Inherited Members
Methods
ShuffleList<T>(IList<T>)
Shuffles a list in-place using the Fisher-Yates algorithm.
[PublicAPI]
public static void ShuffleList<T>(this IList<T> list)
Parameters
list
IList<T>The list to shuffle.
Type Parameters
T
Remarks
This may be called from any thread. This operation is O(n).