Class
EnumerableSelectorAggregateFunction

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

Definition

Namespace:Telerik.Windows.Data

Assembly:Telerik.Windows.Data.dll

Syntax:

cs-api-definition
public abstract class EnumerableSelectorAggregateFunction : EnumerableAggregateFunctionBase, INotifyPropertyChanged

Inheritance: objectAggregateFunctionEnumerableAggregateFunctionBaseEnumerableSelectorAggregateFunction

Derived Classes: ChartAggregateFunctionAverageFunctionMaxFunctionMinFunctionSumFunction

Implements: INotifyPropertyChanged

Inherited Members EnumerableAggregateFunctionBase.AggregateMethodNameEnumerableAggregateFunctionBase.ExtensionMethodsTypeAggregateFunction.Merge(object, AggregateResultMergeAction, AggregateResult, QueryableCollectionViewGroup)AggregateFunction.OnPropertyChanged(string)AggregateFunction.CaptionAggregateFunction.FunctionNameAggregateFunction.ResultFormatStringAggregateFunction.PropertyChanged

Constructors

EnumerableSelectorAggregateFunction()

Declaration

cs-api-definition
protected EnumerableSelectorAggregateFunction()

Properties

SourceField

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.

Declaration

cs-api-definition
public virtual string SourceField { get; set; }

Property Value

string

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

SourceFieldType

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.

Declaration

cs-api-definition
public Type SourceFieldType { get; set; }

Property Value

Type

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

Methods

CreateAggregateExpression(Expression)

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

Declaration

cs-api-definition
public override Expression CreateAggregateExpression(Expression enumerableExpression)

Parameters

enumerableExpression

Expression

The grouping expression.

Returns

Expression

Overrides AggregateFunction.CreateAggregateExpression(Expression)

GenerateFunctionName()

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

Declaration

cs-api-definition
protected override string GenerateFunctionName()

Returns

string

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

Overrides EnumerableAggregateFunctionBase.GenerateFunctionName()

GetAggregationValue(object)

Declaration

cs-api-definition
protected object GetAggregationValue(object item)

Parameters

item

object

Returns

object