FormatterConverter.ToSByte(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Important
This API is not CLS-compliant.
Converts a value to a SByte.
public:
virtual System::SByte ToSByte(System::Object ^ value);
[System.CLSCompliant(false)]
public sbyte ToSByte (object value);
[<System.CLSCompliant(false)>]
abstract member ToSByte : obj -> sbyte
override this.ToSByte : obj -> sbyte
Public Function ToSByte (value As Object) As SByte
Parameters
- value
- Object
The object to convert.
Returns
The converted value
or null
if the type
parameter is null
.
Implements
- Attributes
Exceptions
The value
parameter is null
.
Remarks
This method uses the invariant culture (see CultureInfo.InvariantCulture). To use the current culture or to specify a culture, use the Convert.ToSByte method instead. For more information, see SByte, Convert, and ValueType.