The recording of the first ever ReactiveUI virtual conference is available on our YouTube Channel.


Observer.AsObserver<T> Method

Hides the identity of an observer.

Namespace:  System.Reactive
Assembly:  System.Reactive (in System.Reactive.dll)


<ExtensionAttribute> _
Public Shared Function AsObserver(Of T) ( _
    observer As IObserver(Of T) _
) As IObserver(Of T)
Dim observer As IObserver(Of T)
Dim returnValue As IObserver(Of T)

returnValue = observer.AsObserver()
public static IObserver<T> AsObserver<T>(
    this IObserver<T> observer
generic<typename T>
static IObserver<T>^ AsObserver(
    IObserver<T>^ observer
static member AsObserver : 
        observer:IObserver<'T> -> IObserver<'T> 
JScript does not support generic types and methods.

Type Parameters

  • T


Return Value

Type: System.IObserver<T>
An observer that hides the identity of the specified observer.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IObserver<T>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also


Observer Class

System.Reactive Namespace