Converts the current value to a unicode character based on the underlying type.
[Visual Basic] Overridable Public Function ToChar() As Char [C#] public virtual char ToChar(); [C++] public: virtual __wchar_t ToChar(); [JScript] public function ToChar() : Char;
Exception Type | Condition |
---|---|
InvalidCastException | Always. |
Currently not implemented. Always throws an exception.