Rune.Explicit 操作员
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| Explicit(UInt32 to Rune) |
定义 32 位无符号整数到 a Rune的显式转换。 |
| Explicit(Int32 to Rune) |
定义 32 位有符号整数到 a Rune的显式转换。 |
| Explicit(Char to Rune) |
定义 16 位 Unicode 字符到 a 的 Rune显式转换。 |
Explicit(UInt32 to Rune)
- Source:
- Rune.cs
- Source:
- Rune.cs
- Source:
- Rune.cs
- Source:
- Rune.cs
- Source:
- Rune.cs
重要
此 API 不符合 CLS。
定义 32 位无符号整数到 a Rune的显式转换。
public:
static explicit operator System::Text::Rune(System::UInt32 value);
[System.CLSCompliant(false)]
public static explicit operator System.Text.Rune(uint value);
[<System.CLSCompliant(false)>]
static member op_Explicit : uint32 -> System.Text.Rune
Public Shared Narrowing Operator CType (value As UInteger) As Rune
参数
- value
- UInt32
要转换的 32 位有符号整数。
返回
value 作为 32 位 Unicode 字符。
- 特性
例外
value 是无效的 Unicode 标量。
适用于
Explicit(Int32 to Rune)
- Source:
- Rune.cs
- Source:
- Rune.cs
- Source:
- Rune.cs
- Source:
- Rune.cs
- Source:
- Rune.cs
定义 32 位有符号整数到 a Rune的显式转换。
public:
static explicit operator System::Text::Rune(int value);
public static explicit operator System.Text.Rune(int value);
static member op_Explicit : int -> System.Text.Rune
Public Shared Narrowing Operator CType (value As Integer) As Rune
参数
- value
- Int32
要转换的 32 位有符号整数。
返回
value 作为 32 位 Unicode 字符。
例外
value 是无效的 Unicode 标量。
适用于
Explicit(Char to Rune)
- Source:
- Rune.cs
- Source:
- Rune.cs
- Source:
- Rune.cs
- Source:
- Rune.cs
- Source:
- Rune.cs
定义 16 位 Unicode 字符到 a 的 Rune显式转换。
public:
static explicit operator System::Text::Rune(char ch);
public static explicit operator System.Text.Rune(char ch);
static member op_Explicit : char -> System.Text.Rune
Public Shared Narrowing Operator CType (ch As Char) As Rune
参数
- ch
- Char
要转换的 16 位 Unicode 字符。
返回
ch 作为 32 位 Unicode 字符。
例外
ch 是表示代理项代码点的 Unicode 标量。