Why does the debugger show 0xFFFFFFFF as the value for sbyte?

-2

After entering the negative value, say -1 into the sbyte variable, the debugger shows the value 0xFFFFFFFF - 4 bytes:

After conversion to a larger type of Int32, the value will remain 0xFFFFFFFF. Why is not this 0x000000FF?

In the case of positive values, sbyte stores only 1 byte.

c#
sbyte
asked on Stack Overflow May 8, 2019 by LukasO • edited May 8, 2019 by Patrick Hofman

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0