Skip to content

,System.IObservable{--0})} ,System.Collections.Generic.IEnumerable{--0})} ,System.IObservable{--0},System.Collections.Generic.IEqualityComparer{--0})} ,System.Collections.Generic.IEnumerable{--0},System.Collections.Generic.IEqualityComparer{--0})}

Qbservable.SequenceEqual(IQbservable, IObservable) method

Defined in

Type: Qbservable Namespace: System.Reactive.Linq Assembly: System.Reactive.dll

Applies to

netstandard2.0

Overloads

  • 1. public static IQbservable<bool> SequenceEqual<TSource>(this IQbservable<TSource> first, IObservable<TSource> second)
  • 2. public static IQbservable<bool> SequenceEqual<TSource>(this IQbservable<TSource> first, IEnumerable<TSource> second)
  • 3. public static IQbservable<bool> SequenceEqual<TSource>(this IQbservable<TSource> first, IObservable<TSource> second, IEqualityComparer<TSource> comparer)
  • 4. public static IQbservable<bool> SequenceEqual<TSource>(this IQbservable<TSource> first, IEnumerable<TSource> second, IEqualityComparer<TSource> comparer)

1. Overload

public static IQbservable<bool> SequenceEqual<TSource>(this IQbservable<TSource> first, IObservable<TSource> second)

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

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.

Parameters

NameTypeDescription
first[IQbservable](#First observable sequence to compare.
secondIObservableSecond observable sequence to compare.

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

Remarks

The return type of this operator differs from the corresponding operator on IEnumerable in order to retain asynchronous behavior.

Exceptions

TypeCondition
System.ArgumentNullExceptionfirst or second is null.

2. Overload

public static IQbservable<bool> SequenceEqual<TSource>(this IQbservable<TSource> first, IEnumerable<TSource> second)

Summary: Determines whether an observable and enumerable sequence are equal by comparing the elements pairwise.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.

Parameters

NameTypeDescription
first[IQbservable](#First observable sequence to compare.
secondIEnumerableSecond observable sequence to compare.

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

Remarks

The return type of this operator differs from the corresponding operator on IEnumerable in order to retain asynchronous behavior.

Exceptions

TypeCondition
System.ArgumentNullExceptionfirst or second is null.

3. Overload

public static IQbservable<bool> SequenceEqual<TSource>(this IQbservable<TSource> first, IObservable<TSource> second, IEqualityComparer<TSource> comparer)

Summary: Determines whether two sequences are equal by comparing the elements pairwise using a specified equality comparer.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.

Parameters

NameTypeDescription
first[IQbservable](#First observable sequence to compare.
secondIObservableSecond observable sequence to compare.
comparerIEqualityComparerComparer used to compare elements of both sequences.

Returns: IQbservable -- An observable sequence that contains a single element which indicates whether both sequences are of equal length and their corresponding elements are equal according to the specified equality comparer.

Remarks

The return type of this operator differs from the corresponding operator on IEnumerable in order to retain asynchronous behavior.

Exceptions

TypeCondition
System.ArgumentNullExceptionfirst or second or comparer is null.

4. Overload

public static IQbservable<bool> SequenceEqual<TSource>(this IQbservable<TSource> first, IEnumerable<TSource> second, IEqualityComparer<TSource> comparer)

Summary: Determines whether an observable and enumerable sequence are equal by comparing the elements pairwise using a specified equality comparer.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.

Parameters

NameTypeDescription
first[IQbservable](#First observable sequence to compare.
secondIEnumerableSecond observable sequence to compare.
comparerIEqualityComparerComparer used to compare elements of both sequences.

Returns: IQbservable -- An observable sequence that contains a single element which indicates whether both sequences are of equal length and their corresponding elements are equal according to the specified equality comparer.

Remarks

The return type of this operator differs from the corresponding operator on IEnumerable in order to retain asynchronous behavior.

Exceptions

TypeCondition
System.ArgumentNullExceptionfirst or second or comparer is null.