# DecimalAggregatorDecimalAggregatorDecimalAggregatorDecimalAggregator Struct

## 定義

``public value class DecimalAggregator``
``public struct DecimalAggregator``
``type DecimalAggregator = struct``
``Public Structure DecimalAggregator``

DecimalAggregatorDecimalAggregatorDecimalAggregatorDecimalAggregator

## 屬性

 AverageResult AverageResult AverageResult AverageResult 取得 `Decimal` 值序列的平均。Gets an average of the sequence of `Decimal` values. IsEmpty IsEmpty IsEmpty IsEmpty 取得值，指出 DecimalAggregator 是否包含結果。Gets a value indicating whether the DecimalAggregator contains a result. MaximumResult MaximumResult MaximumResult MaximumResult 取得 `Decimal` 值序列中的最大值。Gets the largest value among the sequence of `Decimal` values. MinimumResult MinimumResult MinimumResult MinimumResult 取得 `Decimal` 值序列中的最小值。Gets the smallest value among the sequence of `Decimal` values. SumResult SumResult SumResult SumResult 取得 `Decimal` 值序列的總和。Gets the sum of the sequence of `Decimal` values.

## 方法

 Average(Decimal) Average(Decimal) Average(Decimal) Average(Decimal) 計算 `Decimal` 值的平均。Averages `Decimal` values. Create() Create() Create() Create() Initializes the DecimalAggregator. Maximum(Decimal) Maximum(Decimal) Maximum(Decimal) Maximum(Decimal) 如果 `value` 參數大於現有結果，則將 `value` 參數指派給該現有結果。Assigns the `value` parameter to the existing result if the `value` parameter is greater than the existing result. Minimum(Decimal) Minimum(Decimal) Minimum(Decimal) Minimum(Decimal) 如果 `value` 參數小於現有結果，則將 `value` 參數指派給該現有結果。Assigns the `value` parameter to the existing result if the `value` parameter is less than the existing result. Sum(Decimal) Sum(Decimal) Sum(Decimal) Sum(Decimal) 將 `Decimal` 值與現有結果相加。Adds a `Decimal` value to the existing result.