MyExt.Foo<T, R> Method (IObservable<T>, Func<T, R>)
Namespace: ReactiveTests.Tests
Assembly: Tests.System.Reactive (in Tests.System.Reactive.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function Foo(Of T, R) ( _
source As IObservable(Of T), _
f As Func(Of T, R) _
) As IObservable(Of R)
'Usage
Dim source As IObservable(Of T)
Dim f As Func(Of T, R)
Dim returnValue As IObservable(Of R)
returnValue = source.Foo(f)
public static IObservable<R> Foo<T, R>(
this IObservable<T> source,
Func<T, R> f
)
[ExtensionAttribute]
public:
generic<typename T, typename R>
static IObservable<R>^ Foo(
IObservable<T>^ source,
Func<T, R>^ f
)
static member Foo :
source:IObservable<'T> *
f:Func<'T, 'R> -> IObservable<'R>
JScript does not support generic types and methods.
Type Parameters
- T
- R
Parameters
- source
Type: System.IObservable<T>
- f
Type: System.Func<T, R>
Return Value
Type: System.IObservable<R>
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IObservable<T>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .