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