Partager via


SByte Structure

Represents an 8-bit signed integer.

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

Syntax

[CLSCompliantAttribute(false)]
[SerializableAttribute]
public struct SByte

Remarks

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.

Version Information

Available in the .NET Micro Framework versions 3.0, 3.5, 4.0, and 4.1.

See Also

Reference

SByte Members
System Namespace