Int32Aggregator 结构

定义

对一个 Int32 值序列计算聚合。Computes aggregates over a sequence of Int32 values.

此 API 支持产品基础结构,不能在代码中直接使用。

public value class Int32Aggregator
public struct Int32Aggregator
type Int32Aggregator = struct
Public Structure Int32Aggregator
继承
Int32Aggregator

属性

AverageResult

返回 Int32 值序列的平均值。Returns the average result of a sequence of Int32 values.

IsEmpty

返回一个布尔值,该值指示该序列是否为空。Returns a Boolean value that indicates if the sequence is empty.

MaximumResult

返回 Int32 值序列中的最大值。Returns the largest value in a sequence of Int32 values.

MinimumResult

返回 Int32 值序列中的最小值。Returns the smallest value in a sequence of Int32 values.

SumResult

返回 Int32 值序列之和。Returns the sum of a sequence of Int32 values.

方法

Average(Int32)

查找 Int32 值序列的平均值。Finds the average of a sequence of Int32 values.

Create()

初始化 Int32 值的序列。Initializes a sequence of Int32 values.

Maximum(Int32)

如果 value 参数大于现有结果,则将 value 参数赋给现有结果。Assigns the value parameter to the existing result if the value parameter is greater than the existing result.

Minimum(Int32)

如果 value 参数小于现有结果,则将 value 参数赋给现有结果。Assigns the value parameter to the existing result if the value parameter is less than the existing result.

Sum(Int32)

向现有结果添加 Int32 值。Adds an Int32 value to the existing result.

适用于