Observer.AsObserver<TSource> Method

March 22, 2012

Hides the identity of an observer.

Namespace:  Microsoft.Phone.Reactive
Assembly:  Microsoft.Phone.Reactive (in Microsoft.Phone.Reactive.dll)

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

Type Parameters

TSource

Parameters

observer
Type: System.IObserver<TSource>

Return Value

Type: System.IObserver<TSource>
Returns IObserver<T>.

Usage Note

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

Windows Phone OS

Supported in: 7.1, 7.0

Windows Phone

Show: