This documentation is archived and is not being maintained.
Char.ToString Method (Char)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Converts the specified Unicode character to its equivalent string representation.
Namespace:
System
Assembly:
mscorlib (in mscorlib.dll)
'Declaration
Public Shared Function ToString ( _
c As Char _
) As String
Return Value
Type:
System.StringThe string representation of the value of c.
The following example demonstrates ToString.
Module Example
Public Sub Demo(ByVal outputBlock As System.Windows.Controls.TextBlock)
Dim ch As Char
ch = "a"c
outputBlock.Text &= ch.ToString() & vbCrLf ' Output: "a"
outputBlock.Text &= Char.ToString("b"c) & vbCrLf ' Output: "b"
End Sub
End Module
Windows Phone OS
Supported in: 8.1, 8.0, 7.1, 7.0