Reputation: 57119
How do I convert the following string:
6F
for example, to a normal int? It's hexdecimal value.
Thanks.
Upvotes: 4
Views: 283
Reputation: 2180
int num = Int32.Parse(strValue, System.Globalization.NumberStyles.HexNumber);
Upvotes: 5