This documentation is archived and is not being maintained.

SByte Structure

Represents an 8-bit signed integer.

The SByte type is not CLS-compliant. The CLS-compliant alternative type is Int16. For more information about CLS compliance, see What is the Common Language Specification.

For a list of all members of this type, see SByte Members.


[Visual Basic]
Public Structure SByte
   Implements IComparable, IFormattable, IConvertible
public struct SByte : IComparable, IFormattable, IConvertible
public __value struct SByte : public IComparable, IFormattable,

[JScript] In JScript, you can use the structures in the .NET Framework, but you cannot define your own.

Thread Safety

This type is safe for multithreaded operations.


The SByte value type represents integers with values ranging from negative 128 to positive 127.

SByte provides methods to compare instances of this type, convert the value of an instance to its string representation, and convert the string representation of a number to an instance of this type.

For information about how format specification codes control the string representation of value types, see Formatting Overview.This type implements interfaces IComparable, IFormattable, and IConvertible. Use the Convert class for conversions instead of this type's explicit interface member implementation of IConvertible.


Namespace: System

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

Assembly: Mscorlib (in Mscorlib.dll)

See Also

SByte Members | System Namespace | Byte