Class ItemCount<T>
- Namespace
- LinqStatistics
- Assembly
- LinqStatistics.dll
Represents the count of an item in a collection
public class ItemCount<T> : IEquatable<ItemCount<T>>
Type Parameters
T
The type of the item
- Inheritance
-
ItemCount<T>
- Implements
-
IEquatable<ItemCount<T>>
- Derived
- Inherited Members
Remarks
ctor
Constructors
ItemCount(T, int)
Represents the count of an item in a collection
public ItemCount(T v, int count)
Parameters
v
Tcount
int
Remarks
ctor
Properties
Count
The number of times RepresentativeValue appears in the source data
public int Count { get; }
Property Value
- int
- Represents the count of an item in a collection
RepresentativeValue
The value represented by the bin
public T RepresentativeValue { get; }
Property Value
- T
- Represents the count of an item in a collection
Methods
Equals(ItemCount<T>)
public bool Equals(ItemCount<T> other)
Parameters
other
ItemCount<T>
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
obj
objectThe item to compare to.
Returns
- bool
True if obj is a Bin{T} and Value and Count are equal
GetHashCode()
public override int GetHashCode()
Returns
- int
Hash of Value and Count
ToString()
public override string ToString()
Returns
Operators
operator ==(ItemCount<T>, ItemCount<T>)
public static bool operator ==(ItemCount<T> lhs, ItemCount<T> rhs)
Parameters
Returns
operator !=(ItemCount<T>, ItemCount<T>)
public static bool operator !=(ItemCount<T> lhs, ItemCount<T> rhs)