Table of Contents

Class ElementAccumulation<TAccumulation, TElement>

Namespace
Bonsai.Reactive
Assembly
Bonsai.Core.dll

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 TAccumulation

The current state of the accumulator.

value TElement

The 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 object

The object to compare with this instance.

Returns

bool

true if the current instance is equal to the specified object; otherwise, false.

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.