Lets say I have the following:
int x = 0;
string newX = "0x00A3B43C";
How can I set x to the newX string? I've tried converting it to an int32 but it throws System.FormatException, so that won't work.
Edit: This isn't really a duplicate, I shouldn't have to convert a hex to an int to define it as an int, right?