Check out example codes for "hex string to int c#". It will help you in understanding the concepts better.

Code Example 1

string hex = "142CBD";
// this returns 1322173
int intValue = int.Parse(hex, System.Globalization.NumberStyles.HexNumber);

Code Example 2

string prefixedHex = "0x142CBD";
// this works, and returns 1322173
int intValue = Convert.ToInt32(prefixedHex , 16);

Learn ReactJs, React Native from akashmittal.com