IListEx ​
Provides extension methods for System.Collections.Generic.IList<1 to perform common operations such as compaction, shuffling, hashing, union, and formatting utilities.
Kind: Static class
Namespace: CrowdControl.Common
Public Static Functions
void
Compacts the list by replacing null elements with the next non-null element to the right. This operation iterates once and sets each null element to the value of its immediate successor.
void
Adds a tuple of (, System.Action) to the list using a provided delegate.
void
Randomly shuffles the elements of the list in-place using the Fisher–Yates algorithm.
TValue
Returns a random element from the list.
int
Computes a hash code for the sequence by aggregating the hash codes of its elements.
TValue[]
Creates a new array containing only the non-null elements from the source list.
string
Converts a list of bytes into its uppercase hexadecimal string representation without separators.
void
Reverses the order of bytes in the list in-place.
void
Adds elements from other to list that are not already present, functioning as a union operation while preserving the original list.
