title: Converting a String to data from a lookup table
body: <p>I have a program that I have written that has 26 int arrays representing the letters of the alphabet. They each contain 5 binary numbers that represent Lights that will be lit up on a display. What I need to do is to convert a string into the binary data. For example, If you look at the code below:</p>
  
  <pre><code>int B[] = {B1111111, B1001001, B1001001, B0110110, B0000000};
  int O[] = {B0111110, B1000001, B1000001, B0111110, B0000000};
  </code></pre>
  
  <p>So if the string was "BOB" I need it to create an array that looks something like this:</p>
  
  <pre><code>int CurrentWord[] = {B1111111, B1001001, B1001001, B0110110, B0000000, B0111110, B1000001, B1000001, B0111110, B0000000, B1111111, B1001001, B1001001, B0110110, B0000000};
  </code></pre>
  
  <p>I can see maybe doing this with a bunch of switches, but there must be a better way.</p>
  
  <p>PS, I know my code is in objective c, I am looking to do this in C#</p>