点击或拖拽改变大小

ExtensionMethods.SumTSource Method (IEnumerableTSource, FuncTSource, Currency)

X#

命名空间:  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
Request Example 查看代码

Parameters

source
类型:IEnumerableTSource
selector
类型:FuncTSource, Currency

Type Parameters

TSource

Return Value

类型:Currency

Usage 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