一款简单易用的基础网络通讯组件库。

ValueCounter 结构

值类型计数器。

Definition

命名空间: TouchSocket.Core
程序集: TouchSocket.Core (在 TouchSocket.Core.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
C#
public struct ValueCounter
Inheritance
Object    ValueType    ValueCounter

属性

Count 周期内的累计计数值。
LastIncrement 最后一次递增时间
OnPeriod 当达到一个周期时触发。
Period 计数周期。

方法

EqualsIndicates whether this instance and a specified object are equal.
(继承自 ValueType。)
GetHashCodeReturns the hash code for this instance.
(继承自 ValueType。)
GetTypeGets the Type of the current instance.
(继承自 Object。)
Increment 累计增加一个计数
Increment(Int64) 累计增加计数
Reset 重置CountLastIncrement
ToStringReturns the fully qualified type name of this instance.
(继承自 ValueType。)

扩展方法

Map
(由 Mapper 定义。)
Map
(由 Mapper 定义。)
MapTTarget
(由 Mapper 定义。)
ToJsonString 转换为Json
(由 SerializeConvert 定义。)

参见