title: C++ Snippet to C# Bitwise Operators
body: <p>I am having a hard time porting this part of C++ to C#.  I keep getting Operator '||' cannot be applied to operands of type 'long' and 'long' which makes sense.  So what would the equivalent be?</p>
  
  <pre><code>    while ((c &lt;= combinations) &amp;&amp; ((round_set &amp; (1 &lt;&lt; cList[c].one)) || (round_set &amp; (1 &lt;&lt; cList[c].two)) || (cUsed[c])))
                     {
                     fprintf( stdout, "C: %d\n", c);
                      c++;
                      }
  
  while ((c &lt;= combinations) &amp;&amp; ((round_set &amp; (1 &lt;&lt; cList[c].one)) || (round_set &amp; (1 &lt;&lt; cList[c].two)) || (cUsed[c])))
                              {
                                  Console.WriteLine("C: {0}", c);
  
                                  c++;
                              }
  </code></pre>