M_Cyjb_UInt32Util_To_1 - CYJB/Cyjb GitHub Wiki

UInt32Util.To 方法 (UInt32, UInt32, Action(UInt32))

从当前值递增(递减)到指定值并执行操作。

Namespace: Cyjb
Assembly: Cyjb (in Cyjb.dll) Version: 1.0.23+7750dd8e971297c5fa962a3bee37fb78f72793f6

语法

C#

public static void To(
	this uint source,
	uint destination,
	Action<uint> action
)

参数

 

source
Type: System.UInt32
要执行操作的起始值。
destination
Type: System.UInt32
要执行操作的目标值。
action
Type: System.Action(UInt32)
要执行的操作,参数为当前的值。

备注

在 Visual Basic 和 C# 中,这个方法可以当成为类型UInt32的实例方法来调用。在采用实例方法语法调用这个方法时,请省略第一个参数。请参考 扩展方法 (Visual Basic)扩展方法 (C# 编程指南) 获取更多信息。

参见

Reference

UInt32Util 类
To 重载
Cyjb 命名空间

⚠️ **GitHub.com Fallback** ⚠️