title: What is the inverse of bitwise AND in C#?
body: <p>I need to do an inverse calculation, which consists bitwise AND operation,how do I do it?</p>
  
  <p>I tried exclusive OR, but it didn't help.</p>
  
  <pre><code>        int i = 254 &amp; 2;
          Console.Write("254 &amp; 2 ={0}", i + "\n");
          Console.Write("{0} ^ 2 ={1}",i, (i ^ 2) + "\n");
  </code></pre>
  
  <p>Doesn't work. How do I do that calculation?</p>