Index.Implicit(Int32 to Index) 运算符
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将整数转换为一个 Index。
public:
static operator Index(int value);
C#
public static implicit operator Index (int value);
static member op_Implicit : int -> Index
Public Shared Widening Operator CType (value As Integer) As Index
- value
- Int32
要转换的整数。
表示整数的索引。
产品 | 版本 |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7 |
.NET Standard | 2.1 |