System.SByte Structure

Represents an 8-bit signed integer.

See Also: SByte Members

Syntax

[System.CLSCompliant(false)]
[System.Runtime.InteropServices.ComVisible(true)]
public struct SByte : IComparable, IComparable<sbyte>, IConvertible, IEquatable<sbyte>, IFormattable

Remarks

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

Note:

   The sbyte type is not CLS-compliant. The CLS-compliant alternative type is short. byte can be used instead to replace a positive sbyte value that ranges from zero to byte.MaxValue. For more information about CLS compliance, see Common Language Specification.

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 Types.

Thread Safety

This type is safe for multithreaded operations.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0