New to Telerik UI for WPFStart a free 30-day trial

Represents an AggregateFunction that uses aggregate extension methods provided in Enumerable using SourceField as a member selector.

Definition

Constructors

C#
protected EnumerableSelectorAggregateFunction()

Properties

Gets or sets the name of the field, of the item from the set of items, which value is used as the argument of the aggregate function.

C#
public virtual string SourceField { get; set; }
Property Value:

The name of the field to get the argument value from.

Gets or sets the type of the member that is used as the argument of the aggregate function. Set this property if the member type cannot be resolved automatically. Such cases are: items with ICustomTypeDescriptor, XmlNode or DataRow.

C#
public Type SourceFieldType { get; set; }
Property Value:

The type of the member used as the argument of the aggregate function.

Methods

Creates the aggregate expression that is used for constructing expression tree that will calculate the aggregate result.

C#
public override Expression CreateAggregateExpression(Expression enumerableExpression)
Parameters:enumerableExpressionExpression

The grouping expression.

Returns:

Expression

Overrides: AggregateFunction.CreateAggregateExpression(Expression)

Generates default name for this function using this type's name.

C#
protected override string GenerateFunctionName()
Returns:

string

Function name generated with the following pattern: {GetType().Name}_{GetHashCode()}.

Overrides: EnumerableAggregateFunctionBase.GenerateFunctionName()

C#
protected object GetAggregationValue(object item)
Parameters:itemobjectReturns:

object