title: Truth table as the keys for a dictionary
body: <p>I have six boolean flags that are independent of each other so there are 64 possible combinations. These flags should determine the value of some string. This string can have seven different values. I think implementing this as a large if-statement is a bad idea so I thought of creating a truth table where each combination determines a specific outcome:</p>
  
  <pre><code>Key            Value
  0,0,0,0,0,0 -&gt; "A"
  0,0,0,0,0,1 -&gt; "A"
  0,0,0,0,1,0 -&gt; "B"
  0,0,0,0,1,1 -&gt; "C"
  0,0,0,1,0,0 -&gt; "A"
  ...
  </code></pre>
  
  <p>This looks remarkably like a dictionary but what would be the best key implementation (in C#)? The smallest possible key would be a <code>byte</code> that I mask the options into. However, this wouldn't improve the readability of my code.</p>
  
  <p>Are there other solutions for this?</p>