Can someone edit this to look better? Thanks!
I'm trying to have a string that is a Hex value but it is set by a third party (Not The Code Itself) and set it back to an int but still be a Hex value. C# Will let you have an int that is equal to a Hex if you have the 0x in front.
Code:
string HexValue = "0x0FC";
int OtherValue = Convert.ToInt(HexValue);
When I try this I get: 'Input string was not in a correct format.'