Class ElementAccumulation<TAccumulation, TElement>
Represents the current state of an accumulation over an observable sequence.
public class ElementAccumulation<TAccumulation, TElement> : IStructuralEquatable, IStructuralComparable, IComparable
Type Parameters
TAccumulation
The type of values in the accumulation.
TElement
The type of values in the observable sequence.
- Inheritance
-
ElementAccumulation<TAccumulation, TElement>
- Implements
- Inherited Members
Constructors
ElementAccumulation(TAccumulation, TElement)
Initializes a new instance of the ElementAccumulation<TAccumulation, TElement> class with the specified accumulator state and current element information.
public ElementAccumulation(TAccumulation accumulation, TElement value)
Parameters
accumulation
TAccumulationThe current state of the accumulator.
value
TElementThe current value of the sequence to accumulate.
Properties
Accumulation
Gets the current state of the accumulator.
public TAccumulation Accumulation { get; }
Property Value
- TAccumulation
Value
Gets the current value of the sequence to accumulate.
public TElement Value { get; }
Property Value
- TElement
Methods
Equals(object)
Returns a value that indicates whether the current instance is equal to the specified object.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with this instance.
Returns
GetHashCode()
Returns a hash code for the current instance.
public override int GetHashCode()
Returns
- int
The hash code for the current instance.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.