ProjectionSumTResult Method

Computes the sum of a sequence of values.

Definition

Namespace: SphinxConnector.FluentApi
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
C#
public static TResult Sum<TResult>(
	Expression<Func<TResult>> expression
)

Parameters

expression  ExpressionFuncTResult
A function that returns the member to sum.

Type Parameters

TResult
The type of the member.

Return Value

TResult
The computed sum.

Exceptions

ArgumentNullExceptionOccurs when expression is null.

See Also