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