title: C# performing bitwise operation with & from C++
body: <p>Anyway here's my problem I have been modifying a whole C++ program to work in C# and I am pretty much done, I have this If statement in the C++ program.</p>
  <pre><code>if(info[i].location &amp; 0x8 || 
               info[i].location &amp; 0x100|| 
                       info[i].location &amp; 0x200)
  {
      //do work
  }
  else
  {
      return
  }
  </code></pre>
  <p>And of course when I do this in C# it gives me a &quot;Operator '||' cannot be applied to operands of type 'int' and 'int'&quot; error.</p>
  <p>Any clue on what my problem is, Im guessing that C# has got a way of doing this as I am fairly unfamiliar with these old C operators.</p>