Share via


ToChar Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Converts the value of the specified 16-bit unsigned integer to its equivalent Unicode character.

This API is not CLS-compliant. 

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
<CLSCompliantAttribute(False)> _
Public Shared Function ToChar ( _
    value As UShort _
) As Char
[CLSCompliantAttribute(false)]
public static char ToChar(
    ushort value
)
[CLSCompliantAttribute(false)]
public:
static wchar_t ToChar(
    unsigned short value
)
[<CLSCompliantAttribute(false)>]
static member ToChar : 
        value:uint16 -> char 
public static function ToChar(
    value : ushort
) : char

Parameters

Return Value

Type: System. . :: . .Char
A Unicode character that is equivalent to value.

.NET Framework Security

See Also

Reference

Convert Class

System Namespace