Click or drag to resize

ExtensionMethods.SumTSource Method (IEnumerableTSource, FuncTSource, Float)

X#

Namespace:  System.Linq
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax
 STATIC METHOD Sum<TSource>(
	SELF source AS IEnumerable<TSource>,
	selector AS Func<TSource, FLOAT>
)
 AS FLOAT
Request Example View Source

Parameters

source
Type: IEnumerableTSource
selector
Type: FuncTSource, Float

Type Parameters

TSource

Return Value

Type: Float

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