Class SequenceEqual
Represents an operator that determines whether two sequences are equal by comparing the elements pairwise.
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
firstIObservable<TSource>First observable sequence.
secondIObservable<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
TSourceThe type of the elements in the source sequences.