Skip to content

Applies to

netstandard2.0

public static IQbservable<TResult> OfType<TResult>(this IQbservable<object> source)

Summary: Filters the elements of an observable sequence based on the specified type.

Type parameters

NameDescription
TResultThe type to filter the elements in the source sequence on.

Parameters

NameTypeDescription
source[IQbservable](#The observable sequence that contains the elements to be filtered.

Returns: IQbservable -- An observable sequence that contains elements from the input sequence of type TResult.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource is null.