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/>
Get the characers in groups of eight, and parse to a byte:

```
string bits = "0000101000010000";

byte[] data =
  Regex.Matches(bits, ".{8}").Cast<Match>()
  .Select(m => Convert.ToByte(m.Groups[0].Value, 2))
  .ToArray();

```