Rune.Explicit Operator
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Explicit(Char to Rune) |
Defines an explicit conversion of a 16-bit Unicode character to a Rune. |
Explicit(Int32 to Rune) |
Defines an explicit conversion of a 32-bit signed integer to a Rune. |
Explicit(UInt32 to Rune) |
Defines an explicit conversion of a 32-bit unsigned integer to a Rune. |
Explicit(Char to Rune)
- Source:
- Rune.cs
- Source:
- Rune.cs
- Source:
- Rune.cs
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
The 16-bit Unicode character to convert.
Returns
ch
as a 32-bit Unicode character.
Exceptions
ch
is a Unicode scalar that represents a surrogate code point.
Applies to
Explicit(Int32 to Rune)
- Source:
- Rune.cs
- Source:
- Rune.cs
- Source:
- Rune.cs
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
The 32-bit signed integer to convert.
Returns
value
as a 32-bit Unicode character.
Exceptions
value
is an invalid Unicode scalar.
Applies to
Explicit(UInt32 to Rune)
- Source:
- Rune.cs
- Source:
- Rune.cs
- Source:
- Rune.cs
Important
This API is not CLS-compliant.
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);
[<System.CLSCompliant(false)>]
static member op_Explicit : uint32 -> System.Text.Rune
Public Shared Narrowing Operator CType (value As UInteger) As Rune
Parameters
- value
- UInt32
The 32-bit signed integer to convert.
Returns
value
as a 32-bit Unicode character.
- Attributes
Exceptions
value
is an invalid Unicode scalar.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기