Throws an InvalidCastException. Called by the ToType method.
[Visual Basic] Overridable Public Function ToChar() As Char [C#] public virtual char ToChar(); [C++] public: virtual __wchar_t ToChar(); [JScript] public function ToChar() : Char;
None, but the return value is typed char to implement the IConvertible interface.
Exception Type | Condition |
---|---|
InvalidCastException | (Always thrown.) |
If the ToType type is a char this method is called. This method throws an InvalidCastException().
DBNull Class | DBNull Members | System Namespace | ToType | IConvertible | Type | Char