Do I see this in some code? Checks that int is greater than 0x80. What is 0x80? This is not an int.
thanks
This integer literal is the hexadecimal number 80, which is the decimal number 128. The prefix "0x" indicates that it is in hexadecimal format.
See section 2.4.4.2 of the C # Language Specification: Integer Literals for more details.
This is the hexadecimal literal for 128. In fact, it is an int. Any literal starting with 0x is a hexadecimal literal.
0x
This is a hexadecimal number .
The prefix 0x means that it is hexadecimal, 0x80 means 128 in decimal. Similarly, 128 will mean 0x80 in hexadecimal format. So this is perfectly true:
int x = 0x80;
0x... is the hexadecimal notation for an integer
0x...
0x80 = 128