Plurality<T>
ReferencesRepresents a collection of values, some of which may be identical. This class is used for 'varies' UI to keep track of multiple states.
Type parameters:
| T |
Constructors
Plurality
#Create a new plurality with an equality comparer.
Properties
AllValues
#Enumerate over all values in this plurality, including repeats. Enumeration starts with the most common value.
Average
#public T Average { get; }
Gets the average of this collection. This value makes no sense if Count = 0.
Values
#Enumerate over all unique values in this plurality. Enumeration starts with the most common value.