Observable

Observable.Then<TSource, TResult> Method

Matches when the observable sequence has an available value and projects the value.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function Then(Of TSource, TResult) ( _
    source As IObservable(Of TSource), _
    selector As Func(Of TSource, TResult) _
) As Plan(Of TResult)
'Usage
Dim source As IObservable(Of TSource)
Dim selector As Func(Of TSource, TResult)
Dim returnValue As Plan(Of TResult)

returnValue = source.Then(selector)
public static Plan<TResult> Then<TSource, TResult>(
    this IObservable<TSource> source,
    Func<TSource, TResult> selector
)
[ExtensionAttribute]
public:
generic<typename TSource, typename TResult>
static Plan<TResult>^ Then(
    IObservable<TSource>^ source, 
    Func<TSource, TResult>^ selector
)
static member Then : 
        source:IObservable<'TSource> * 
        selector:Func<'TSource, 'TResult> -> Plan<'TResult> 
JScript does not support generic types and methods.

Type Parameters

  • TSource
    The type of source.

  • TResult
    The type of result.

Parameters

  • source
    Type: System.IObservable<TSource>
    The observable source sequence.

  • selector
    Type: System.Func<TSource, TResult>
    A transform function to apply to each source element.

Return Value

Type: System.Reactive.Joins.Plan<TResult>
The observable sequence has an available value and projects the value.

Usage Note

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

See Also

Reference

Observable Class

System.Reactive.Linq Namespace