This might sound odd, but my issue is that I have a text string of hex values from a text file, like so:
\"0x0f, 0x40, 0xff, ....\"
I have
You just have to parse each string. Because each one is already only one value, you can do this:
byte b;
if (byte.TryParse(s, NumberStyles.HexNumber,
CultureInfo.InvariantCulture.NumberFormat, out b))
{
// b contains the value.
}
where s is the string you want to parse, and b is the resulting value.