Index.Implicit(Int32 to Index) 运算符

定义

将整数转换为一个 Index

C#
public static implicit operator Index (int value);

参数

value
Int32

要转换的整数。

返回

Index

表示整数的索引。

适用于

产品 版本
.NET Core 3.0, Core 3.1, 5, 6, 7
.NET Standard 2.1