Does C# have int8 and uint8?

后端 未结 3 2068
抹茶落季
抹茶落季 2020-12-29 18:20

I have four questions:

  1. Does C# have int8
  2. If so, how can I convert a string to int8?
  3. Does C# have
3条回答
  •  梦谈多话
    2020-12-29 18:53

    I believe you can use sbyte for signed 8-bit integers, as follows:

    sbyte sByte1 = 127;
    

    You can also use byte for unsigned 8-bit integers, as follows:

    byte myByte = 255;
    

    Here are some links for sbyte and byte:

    General Integral type tables
    sbyte documentation
    byte documentation

提交回复
热议问题