 | 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: 5.4.1
Syntaxpublic static int CountDistinct<TSource>(
Expression<Func<TSource>> expression
)
Public Shared Function CountDistinct(Of TSource) (
expression As Expression(Of Func(Of TSource))
) As Integer
Parameters
- expression
- Type: System.Linq.ExpressionsExpressionFuncTSource
A function that returns the member to count distinct occurences for.
Type Parameters
- TSource
- The type of the member.
Return Value
Type:
Int32The number of distinct occurences.
Exceptions
See Also