I have a string of eight 1s and 0s with spaces in between, something like \"1 0 0 1 1 0 1 0\", that I want converted in to an int. Is there a simple way to do this? I feel l
An alternative to @SLaks's answer (but only for parsing Hex) is
Int32.Parse(hexString, System.Globalization.NumberStyles.HexNumber);
There's no equivalent for binary, though, so his is a better general-purpose answer.