Table of Contents

Class SequenceEqual

Namespace
Bonsai.Reactive
Assembly
Bonsai.Core.dll

Represents an operator that determines whether two sequences are equal by comparing the elements pairwise.

Marble diagram

SequenceEqual will return false as soon as one of the sequences emits an element with a different value or in a different order from the other sequences, or if one of the sequences terminates early. If all notifications are equal, SequenceEqual will return true when all sequences terminate successfully.

[Combinator]
public class SequenceEqual
Inheritance
SequenceEqual
Inherited Members

Methods

Process<TSource>(IObservable<TSource>, IObservable<TSource>)

Determines whether two sequences are equal by comparing the elements pairwise.

public IObservable<bool> Process<TSource>(IObservable<TSource> first, IObservable<TSource> second)

Parameters

first IObservable<TSource>

First observable sequence.

second IObservable<TSource>

Second observable sequence.

Returns

IObservable<bool>

An observable sequence that contains a single element indicating whether both sequences are of equal length and their corresponding elements are equal according to the default equality comparer for their type.

Type Parameters

TSource

The type of the elements in the source sequences.