Search This Blog

Wednesday, November 6, 2013

sbyte keyword C#

C# > Types > sbyte

The sbyte keyword is an integral type.
Range: -128 to 127
Size: Signed 8-bit integer

Example:

sbyte k = 127; // ok
k = 128;      // Error     1      Constant value '128' cannot be converted to a 'sbyte'