Share via


Observable.For<TSource, TResult> Method

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

Syntax

'Declaration
Public Shared Function For(Of TSource, TResult) ( _
    source As IEnumerable(Of TSource), _
    resultSelector As Func(Of TSource, IObservable(Of TResult)) _
) As IObservable(Of TResult)
public static IObservable<TResult> For<TSource, TResult>(
    IEnumerable<TSource> source,
    Func<TSource, IObservable<TResult>> resultSelector
)
public:
generic<typename TSource, typename TResult>
static IObservable<TResult>^ For(
    IEnumerable<TSource>^ source, 
    Func<TSource, IObservable<TResult>^>^ resultSelector
)
static member For : 
        source:IEnumerable<'TSource> * 
        resultSelector:Func<'TSource, IObservable<'TResult>> -> IObservable<'TResult> 

Type Parameters

  • TSource
  • TResult

Parameters

Return Value

Type: System.IObservable<TResult>

Version Information

.NET for Windows Phone apps

Supported in: Windows Phone 8, Silverlight 8.1

.NET Framework Security

See Also

Reference

Observable Class

Microsoft.Phone.Reactive Namespace