Observable.Case<TValue, TResult> Method (Func<TValue>, IDictionary<TValue, IObservable<TResult>>, IObservable<TResult>)
Namespace: Microsoft.Phone.Reactive
Assembly: Microsoft.Phone.Reactive (in Microsoft.Phone.Reactive.dll)
Syntax
'Declaration
Public Shared Function Case(Of TValue, TResult) ( _
selector As Func(Of TValue), _
sources As IDictionary(Of TValue, IObservable(Of TResult)), _
defaultSource As IObservable(Of TResult) _
) As IObservable(Of TResult)
public static IObservable<TResult> Case<TValue, TResult>(
Func<TValue> selector,
IDictionary<TValue, IObservable<TResult>> sources,
IObservable<TResult> defaultSource
)
public:
generic<typename TValue, typename TResult>
static IObservable<TResult>^ Case(
Func<TValue>^ selector,
IDictionary<TValue, IObservable<TResult>^>^ sources,
IObservable<TResult>^ defaultSource
)
static member Case :
selector:Func<'TValue> *
sources:IDictionary<'TValue, IObservable<'TResult>> *
defaultSource:IObservable<'TResult> -> IObservable<'TResult>
Type Parameters
- TValue
- TResult
Parameters
- selector
Type: System.Func<TValue>
- sources
Type: System.Collections.Generic.IDictionary<TValue, IObservable<TResult>>
- defaultSource
Type: System.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.