C# convert hex string to decimal code example
Example 1: convert string to decimal c#
var convertDecimal = Convert.ToDecimal(value);
Example 2: hex string to int c#
string prefixedHex = "0x142CBD";
// this works, and returns 1322173
int intValue = Convert.ToInt32(prefixedHex , 16);