Converts an SByte to a string.
[Visual Basic] Overridable Public Function ToSByte() As SByte [C#] public virtual sbyte ToSByte(); [C++] public: virtual char ToSByte(); [JScript] public function ToSByte() : SByte;
The SByte representation of the string as a base number.
Exception Type | Condition |
---|---|
ArgumentException | If the string is not base 2, 8, 10, or 16. |
FormatException | If the string cannot be parsed as a base number. |
ArgumentNullException | If the string is null. |
OverflowException | If the string is greater than SByte.MaxValue or less than SByte.MinValue. |
If the number is 16, the number may be preceded by "0x"; any other leading or trailing character causes an error.
The ToSByte implementation is the same as ToSByte. (In addition information, see SByte, Convert and Value.)