Class
AggregateValueExtensions

Extension methods for the AggregateValue class.

Definition

Namespace:Telerik.Pivot.Core

Assembly:Telerik.Pivot.Core.dll

Syntax:

cs-api-definition
public static class AggregateValueExtensions

Inheritance: objectAggregateValueExtensions

Methods

ContainsError(IEnumerable<AggregateValue>)

Check if any of the AggregateValues contains error.

Declaration

cs-api-definition
public static bool ContainsError(this IEnumerable<AggregateValue> aggregateValues)

Parameters

aggregateValues

IEnumerable<AggregateValue>

Returns

bool

ConvertOrDefault<T>(AggregateValue)

Convert the given aggregate value to specified type.

Declaration

cs-api-definition
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.

IsError(AggregateValue)

Check if the value of the AggregateValue is error.

Declaration

cs-api-definition
public static bool IsError(this AggregateValue aggregateValue)

Parameters

aggregateValue

AggregateValue

The aggregate value to check.

Returns

bool

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

cs-api-definition
public static bool TryConvertValue<T>(this AggregateValue aggregateValue, out T value)

Parameters

aggregateValue

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

bool

True if conversion succeeded, otherwise false.