ExtensionMethods.SumTSource Method (IEnumerableTSource, FuncTSource, Currency)
|
|
命名空间:
System.Linq
程序集:
XSharp.RT (在 XSharp.RT.dll 中) 版本:2.24 GA
Syntax STATIC METHOD Sum<TSource>(
SELF source AS IEnumerable<TSource>,
selector AS Func<TSource, CURRENCY>
)
AS CURRENCY
public static Currency Sum<TSource>(
this IEnumerable<TSource> source,
Func<TSource, Currency> selector
)
Request Example
查看代码Parameters
- source
- 类型:IEnumerableTSource
- selector
- 类型:FuncTSource, Currency
Type Parameters
- TSource
Return Value
类型:
CurrencyUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerableTSource. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also