Class DistinctBy
Represents an operator that returns an observable sequence containing only elements which are distinct according to the specified key.
The DistinctBy
operator ensures that only unique elements are included in the result sequence. The KeySelector property specifies the member, or set of members, to use to test the uniqueness of each element in the source sequence. The default EqualityComparer<T> for the type of the selected key is used to check whether each key is unique. If multiple non-unique keys are present in the source sequence, only the first element emitted with a given key will be included in the result sequence.
public class DistinctBy : SingleArgumentExpressionBuilder, IExpressionBuilder
- Inheritance
-
DistinctBy
- Implements
- Inherited Members
- Extension Methods
Properties
KeySelector
Gets or sets a value specifying the inner properties used to test the uniqueness of each element in the sequence.
public string KeySelector { get; set; }
Property Value
Methods
Build(IEnumerable<Expression>)
Constructs an Expression node from a collection of input arguments. The result can be chained with other builders in a workflow.
public override Expression Build(IEnumerable<Expression> arguments)
Parameters
arguments
IEnumerable<Expression>A collection of Expression nodes representing the input arguments.
Returns
- Expression
The constructed Expression node.