Click or drag to resize

ProjectionCountDistinctTSource Method

Computes the number of distinct occurences of a value in a sequence of values.

Namespace: SphinxConnector.FluentApi
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.0.0
Syntax
public static int CountDistinct<TSource>(
	Expression<Func<TSource>> expression
)

Parameters

expression  ExpressionFuncTSource
A function that returns the member to count distinct occurences for.

Type Parameters

TSource
The type of the member.

Return Value

Int32
The number of distinct occurences.
Exceptions
ExceptionCondition
ArgumentNullExceptionOccurs when expression is null.
See Also