I have a string which typically is in the format : "0xFF".
I’ll trim it since there is a chance of whitespace.
How do i convert that into hex and convert “34” to decimal?
I know about .Parse but does this support hex characters when the string is "0x123"?
You’ll have to strip the “0x” part, but this snippet works: