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 (1)

  1. Phil Weber says:

    Hmm… I think I prefer the VB syntax:

    I = Val("&H1FF")

    😉

Skip to main content