Namespace:ReactiveTests.Tests
装配: Tests.System.Reactive.dll) 中的 Tests.System.Reactive (
语法
'Declaration
<ExtensionAttribute> _
Public Shared Function Foo(Of T, R) ( _
source As IQbservable(Of T), _
f As Expression(Of Func(Of T, R)) _
) As IQbservable(Of R)
'Usage
Dim source As IQbservable(Of T)
Dim f As Expression(Of Func(Of T, R))
Dim returnValue As IQbservable(Of R)
returnValue = source.Foo(f)
public static IQbservable<R> Foo<T, R>(
this IQbservable<T> source,
Expression<Func<T, R>> f
)
[ExtensionAttribute]
public:
generic<typename T, typename R>
static IQbservable<R>^ Foo(
IQbservable<T>^ source,
Expression<Func<T, R>^>^ f
)
static member Foo :
source:IQbservable<'T> *
f:Expression<Func<'T, 'R>> -> IQbservable<'R>
JScript does not support generic types and methods.
类型参数
- T
- R
参数
- source
类型: System.Reactive.Linq.IQbservable<T>
- f
类型: System.Linq.Expressions.Expression<Func<T、R>>
返回值
类型: System.Reactive.Linq.IQbservable<R>
使用说明
在 Visual Basic 和 C# 中,可以将此方法作为 IQbservable<T> 类型的任何对象的实例方法调用。 当使用实例方法语法调用此方法时,请省略第一个参数。 有关详细信息,请参阅或。