Table of Contents

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
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 T
count 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

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

The 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

string

Operators

operator ==(ItemCount<T>, ItemCount<T>)

public static bool operator ==(ItemCount<T> lhs, ItemCount<T> rhs)

Parameters

lhs ItemCount<T>
rhs ItemCount<T>

Returns

bool

operator !=(ItemCount<T>, ItemCount<T>)

public static bool operator !=(ItemCount<T> lhs, ItemCount<T> rhs)

Parameters

lhs ItemCount<T>
rhs ItemCount<T>

Returns

bool