Hi,
use like this:
int decValue = int.TryParse(substring,decValue);
To convert hexadecimal values to integer use:
int decValue = int.Parse(substring, System.Globalization.NumberStyles.HexNumber);
You may be getting error for "1A". Try to avoid those values.
Thanks