Rune.Explicit Operator

Definition

Overloads

Explicit(Char to Rune)

定义从 16 位 Unicode 字符到 Rune 的显式转换。Defines an explicit conversion of a 16-bit Unicode character to a Rune.

Explicit(Int32 to Rune)

定义从 32 位带符号整数到 Rune 的显式转换。Defines an explicit conversion of a 32-bit signed integer to a Rune.

Explicit(UInt32 to Rune)

定义从 32 位无符号整数到 Rune 的显式转换。Defines an explicit conversion of a 32-bit unsigned integer to a Rune.

Explicit(Char to Rune)

定义从 16 位 Unicode 字符到 Rune 的显式转换。Defines an explicit conversion of a 16-bit Unicode character to 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

Parameters

ch
Char

要转换的 16 位 Unicode 字符。The 16-bit Unicode character to convert.

Returns

Rune

32 位 Unicode 字符形式的 chch as a 32-bit Unicode character.

Exceptions

ch 是表示代理码位的 Unicode 标量。ch is a Unicode scalar that represents a surrogate code point.

Explicit(Int32 to Rune)

定义从 32 位带符号整数到 Rune 的显式转换。Defines an explicit conversion of a 32-bit signed integer to 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

Parameters

value
Int32

要转换的 32 位带符号整数。The 32-bit signed integer to convert.

Returns

Rune

32 位 Unicode 字符形式的 valuevalue as a 32-bit Unicode character.

Exceptions

value 是无效的 Unicode 标量。value is an invalid Unicode scalar.

Explicit(UInt32 to Rune)

Important

This API is not CLS-compliant.

定义从 32 位无符号整数到 Rune 的显式转换。Defines an explicit conversion of a 32-bit unsigned integer to a Rune.

public:
 static explicit operator System::Text::Rune(System::UInt32 value);
[System.CLSCompliant(false)]
public static explicit operator System.Text.Rune (uint value);
static member op_Explicit : uint32 -> System.Text.Rune
Public Shared Narrowing Operator CType (value As UInteger) As Rune

Parameters

value
UInt32

要转换的 32 位带符号整数。The 32-bit signed integer to convert.

Returns

Rune

32 位 Unicode 字符形式的 valuevalue as a 32-bit Unicode character.

Attributes

Exceptions

value 是无效的 Unicode 标量。value is an invalid Unicode scalar.

Applies to