tags:

views:

44

answers:

2
+1  Q: 

What is "&H5DC"?

My friend had a VB.NET project and lost the source. I decompiled project binaries and got it back. In the decompiled codes I saw some lines like image.Height = &H5DC. Apparently it is integer but I don't get it, what is "&H5DC"? Is it hexadecimal? How can I find out its actual integer value?

+6  A: 

It is hexadecimal.

You can configure Reflector to always use decimal in Options.

You can convert it to decimal using Google or Windows calculator. (&H is a VB.Net prefix and is not part of the number)

Explanation: Compiled IL does not distinguish between decimal literals and hexadecimal literals. (They're both numbers). Reflector tries to guess which numbers were probably hexadecimal.

SLaks
+1  A: 

&H5DC = 1500 as 'normal' (decimal) value

zgorawski