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
- source
Type: System.Collections.Generic.IEnumerable<TSource>
- resultSelector
Type: System.Func<TSource, IObservable<TResult>>
Return Value
Type: System.IObservable<TResult>
Version Information
.NET for Windows Phone apps
Supported in: Windows Phone 8, Silverlight 8.1
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.