Whether an integer literal is originally written in the source code as hexadecimal or decimal (or, say, ternary, provided that the programming language is supported) is not written to IL. What you see is a hunch made by a decompiler.
In fact, you can see all these literals in decimal form by setting:
View -> Options -> Disassembler -> Number Format : Decimal
source share