I have a string representing bits, such as:
\"0000101000010000\"
I want to convert it to get an array of bytes such as:
{0x
Here's a quick and straightforward solution (and I think it will meet all your requirements): http://vbktech.wordpress.com/2011/07/08/c-net-converting-a-string-of-bits-to-a-byte-array/