Skip to content

)}

Observer.AsObserver(IObserver) method

Defined in

Type: Observer Namespace: System.Reactive Assembly: System.Reactive.dll

Applies to

netstandard2.0

public static IObserver<T> AsObserver<T>(this IObserver<T> observer)

Summary: Hides the identity of an observer.

Type parameters

NameDescription
TThe type of the elements received by the source observer.

Parameters

NameTypeDescription
observerIObserverAn observer whose identity to hide.

Returns: IObserver -- An observer that hides the identity of the specified observer.

Exceptions

TypeCondition
System.ArgumentNullExceptionobserver is null.