How can I convert a string value like "0x310530" to an integer value in C#?
I\'ve tried int.TryParse (and even int.TryParse with Syste
If you remove the leading 0x, you could use int.Parse
int a = int.Parse("1310530", NumberStyles.AllowHexSpecifier);