Observer.AsObserver<TSource> Method

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


<ExtensionAttribute> _
Public Shared Function AsObserver(Of TSource) ( _
    observer As IObserver(Of TSource) _
) As IObserver(Of TSource)
public static IObserver<TSource> AsObserver<TSource>(
    this IObserver<TSource> observer
generic<typename TSource>
static IObserver<TSource>^ AsObserver(
    IObserver<TSource>^ observer
static member AsObserver : 
        observer:IObserver<'TSource> -> IObserver<'TSource> 

Type Parameters

  • TSource


Return Value

Type: System.IObserver<TSource>

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. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Version Information

.NET for Windows Phone apps

Supported in: Windows Phone 8, Silverlight 8.1

.NET Framework Security

See Also


Observer Class

Microsoft.Phone.Reactive Namespace