Question: I have many table in my database it contain many key relation. i need to list out the table and its corresponding key name and the relationship table.

Answer: 
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/>
This should get you to your answer: [How can I convert bits to bytes?](https://stackoverflow.com/questions/719502/how-can-i-convert-bits-to-bytes)

You could just convert your string into an array like that article has, and from there use the same logic to perform the conversion.