Class EnumerableSelectorAggregateFunction
Represents an AggregateFunction that uses aggregate extension methods provided in System.Linq.Enumerable using SourceField as a member selector.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Data
Assembly: Telerik.Windows.Data.dll
Syntax
public abstract class EnumerableSelectorAggregateFunction : EnumerableAggregateFunctionBase, INotifyPropertyChanged
Constructors
EnumerableSelectorAggregateFunction()
Declaration
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
public virtual string SourceField { get; set; }
Property Value
System.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
public Type SourceFieldType { get; set; }
Property Value
System.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
public override Expression CreateAggregateExpression(Expression enumerableExpression)
Parameters
System.Linq.Expressions.Expression
enumerableExpression
The grouping expression. |
Returns
System.Linq.Expressions.Expression
|
Overrides
GenerateFunctionName()
Generates default name for this function using this type's name.
Declaration
protected override string GenerateFunctionName()
Returns
System.String
Function name generated with the following pattern: {System.Object.GetType().System.Reflection.MemberInfo.Name}_{System.Object.GetHashCode()}. |
Overrides
GetAggregationValue(Object)
Declaration
protected object GetAggregationValue(object item)
Parameters
System.Object
item
|
Returns
System.Object
|