Welcome to MSDN Blogs Sign in | Join | Help

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...

 

 

 

Published Tuesday, May 13, 2003 4:36 PM by Addys

Comments

# re: Easy Hex handling in .NET

Tuesday, May 13, 2003 12:00 PM by Phil Weber
Hmm... I think I prefer the VB syntax:

I = Val("&H1FF")

;-)
New Comments to this post are disabled
 
Page view tracker