Char..::..Parse Method
Converts the value of the specified string to its equivalent Unicode character.
Namespace:
SystemAssembly: Bridge (in Bridge.dll)
Syntax
[TemplateAttribute] public static char Parse( string s )
<TemplateAttribute> _ Public Shared Function Parse ( _ s As String _ ) As Char
[TemplateAttribute] public: static wchar_t^ Parse( String^ s )
Parameters
- s
- Type: System..::..String
A string that contains a single character, or null.
Return Value
A Unicode character equivalent to the sole character in s.Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | s is null. |
System..::..FormatException | The length of s is not 1. |