ClassAggregateValueExtensions
Extension methods for the AggregateValue class.
Definition
Namespace:Telerik.Pivot.Core
Assembly:Telerik.Pivot.Core.dll
Syntax:
public static class AggregateValueExtensions
Inheritance: objectAggregateValueExtensions
Methods
ContainsError(IEnumerable<AggregateValue>)
Check if any of the AggregateValues contains error.
Declaration
public static bool ContainsError(this IEnumerable<AggregateValue> aggregateValues)
Parameters
aggregateValues
Returns
ConvertOrDefault<T>(AggregateValue)
Convert the given aggregate value to specified type.
Declaration
public static T ConvertOrDefault<T>(this AggregateValue aggregateValue)
Parameters
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.
IsError(AggregateValue)
Check if the value of the AggregateValue is error.
Declaration
public static bool IsError(this AggregateValue aggregateValue)
Parameters
aggregateValue
The aggregate value to check.
Returns
True if the actual value is AggregateError, otherwise false.
TryConvertValue<T>(AggregateValue, out T)
Tries to convert the given aggregate value to specified type.
Declaration
public static bool TryConvertValue<T>(this AggregateValue aggregateValue, out T value)
Parameters
aggregateValue
The aggregate value to convert.
value
T
When 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.