Extension methods for the AggregateValue class.
Definition
Namespace:Telerik.Pivot.Core
Assembly:Telerik.WinControls.PivotGrid.dll
Syntax:
public static class AggregateValueExtensions
Inheritance: objectAggregateValueExtensions
Methods
Check if any of the AggregateValues contains error.
public static bool ContainsError(this IEnumerable<AggregateValue> aggregateValues)
Convert the given aggregate value to specified type.
public static T ConvertOrDefault<T>(this AggregateValue aggregateValue)
The aggregate value to convert.
Returns:T
The value associated, if conversion is possible; otherwise, the default value for the type of the value parameter.
Check if the value of the AggregateValue is error.
public static bool IsError(this AggregateValue aggregateValue)
The aggregate value to check.
Returns:True if the actual value is AggregateError, otherwise false.
Tries to convert the given aggregate value to specified type.
public static bool TryConvertValue<T>(this AggregateValue aggregateValue, out T value)
The aggregate value to convert.
valueTWhen this method returns, contains the value associated, if conversion is possible; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.
Returns:True if conversion succeeded, otherwise false.