Class AggregateValueExtensions
Extension methods for the AggregateValue class.
Inheritance
Namespace: Telerik.Pivot.Core
Assembly: Telerik.Pivot.Core.dll
Syntax
public static class AggregateValueExtensions : Object
Methods
ContainsError(IEnumerable<AggregateValue>)
Check if any of the AggregateValues contains error.
Declaration
public static bool ContainsError(this IEnumerable<AggregateValue> aggregateValues)
Parameters
System.Collections.Generic.IEnumerable<AggregateValue>
aggregateValues
|
Returns
System.Boolean
|
ConvertOrDefault<T>(AggregateValue)
Convert the given aggregate value to specified type.
Declaration
public static T ConvertOrDefault<T>(this AggregateValue aggregateValue)
Parameters
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. |
Type Parameters
T
The type to convert to. |
IsError(AggregateValue)
Check if the value of the AggregateValue is error.
Declaration
public static bool IsError(this AggregateValue aggregateValue)
Parameters
AggregateValue
aggregateValue
The aggregate value to check. |
Returns
System.Boolean
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
aggregateValue
The aggregate value to convert. |
T
value
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
System.Boolean
True if conversion succeeded, otherwise false. |
Type Parameters
T
The type to convert to. |