how the data is presented and the type of value are independent. if the value is hex then you can convert it using Convert.ToX().
it may be the value is not a hex, but a string or something else. to figure out the type do something like
Code:
var hex = GetHex();
Console.WriteLine("hex is: {0}", hex.GetType().Name);
var dec = Convert.ToDecimal(hex);
Console.WriteLine("hex decimal value is {0}", dec);
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.