Easy Hex handling in .NET
Hi,
This is kind of trivial, but cool anyway. Someone just emailed me this snippet of code to read hexadecimal numbers:
int i = int.Parse("1FF", Globalization.NumberStyles.HexNumber))
Neat...
Comments
- Anonymous
May 13, 2003
Hmm... I think I prefer the VB syntax:
I = Val("&H1FF")
;-)