Table of Contents

Class Max

Namespace
Bonsai.Reactive
Assembly
Bonsai.Core.dll

Represents an operator that computes the maximum element in an observable sequence.

Marble diagram

The Max operator collects all the values from the source sequence and emits a single value representing the largest of all values. The single result value is emitted only when the source sequence terminates successfully.

[Combinator]
public class Max
Inheritance
Max
Inherited Members

Methods

Process(IObservable<decimal>)

Returns the maximum value in an observable sequence of decimal values.

public IObservable<decimal> Process(IObservable<decimal> source)

Parameters

source IObservable<decimal>

A sequence of decimal values to determine the maximum value of.

Returns

IObservable<decimal>

An observable sequence containing a single element representing the maximum value in the source sequence.

Process(IObservable<double>)

Returns the maximum value in an observable sequence of double values.

public IObservable<double> Process(IObservable<double> source)

Parameters

source IObservable<double>

A sequence of double values to determine the maximum value of.

Returns

IObservable<double>

An observable sequence containing a single element representing the maximum value in the source sequence.

Process(IObservable<int>)

Returns the maximum value in an observable sequence of int values.

public IObservable<int> Process(IObservable<int> source)

Parameters

source IObservable<int>

A sequence of int values to determine the maximum value of.

Returns

IObservable<int>

An observable sequence containing a single element representing the maximum value in the source sequence.

Process(IObservable<long>)

Returns the maximum value in an observable sequence of long values.

public IObservable<long> Process(IObservable<long> source)

Parameters

source IObservable<long>

A sequence of long values to determine the maximum value of.

Returns

IObservable<long>

An observable sequence containing a single element representing the maximum value in the source sequence.

Process(IObservable<decimal?>)

Returns the maximum value in an observable sequence of nullable decimal values.

public IObservable<decimal?> Process(IObservable<decimal?> source)

Parameters

source IObservable<decimal?>

A sequence of nullable decimal values to determine the maximum value of.

Returns

IObservable<decimal?>

An observable sequence containing a single element representing the maximum value in the source sequence.

Process(IObservable<double?>)

Returns the maximum value in an observable sequence of nullable double values.

public IObservable<double?> Process(IObservable<double?> source)

Parameters

source IObservable<double?>

A sequence of nullable double values to determine the maximum value of.

Returns

IObservable<double?>

An observable sequence containing a single element representing the maximum value in the source sequence.

Process(IObservable<int?>)

Returns the maximum value in an observable sequence of nullable int values.

public IObservable<int?> Process(IObservable<int?> source)

Parameters

source IObservable<int?>

A sequence of nullable int values to determine the maximum value of.

Returns

IObservable<int?>

An observable sequence containing a single element representing the maximum value in the source sequence.

Process(IObservable<long?>)

Returns the maximum value in an observable sequence of nullable long values.

public IObservable<long?> Process(IObservable<long?> source)

Parameters

source IObservable<long?>

A sequence of nullable long values to determine the maximum value of.

Returns

IObservable<long?>

An observable sequence containing a single element representing the maximum value in the source sequence.

Process(IObservable<float?>)

Returns the maximum value in an observable sequence of nullable float values.

public IObservable<float?> Process(IObservable<float?> source)

Parameters

source IObservable<float?>

A sequence of nullable float values to determine the maximum value of.

Returns

IObservable<float?>

An observable sequence containing a single element representing the maximum value in the source sequence.

Process(IObservable<float>)

Returns the maximum value in an observable sequence of float values.

public IObservable<float> Process(IObservable<float> source)

Parameters

source IObservable<float>

A sequence of float values to determine the maximum value of.

Returns

IObservable<float>

An observable sequence containing a single element representing the maximum value in the source sequence.

Process<TSource>(IObservable<TSource>)

Returns the maximum element in an observable sequence.

public IObservable<TSource> Process<TSource>(IObservable<TSource> source)

Parameters

source IObservable<TSource>

An observable sequence to determine the maximum element of.

Returns

IObservable<TSource>

An observable sequence containing a single element representing the maximum value in the source sequence.

Type Parameters

TSource

The type of the elements in the source sequence.