ProjectionCount DistinctTSource Method
Computes the number of distinct occurences of a value in a sequence of values.
Definition
Namespace: SphinxConnector.FluentApi
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
The number of distinct occurences.
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
C#
public static int CountDistinct<TSource>(
Expression<Func<TSource>> expression
)
VB
Public Shared Function CountDistinct(Of TSource) (
expression As Expression(Of Func(Of TSource))
) As IntegerParameters
- expression ExpressionFuncTSource
- A function that returns the member to count distinct occurences for.
Type Parameters
- TSource
- The type of the member.
Return Value
Int32The number of distinct occurences.
Exceptions
| ArgumentNullException | Occurs when expression is null. |