title: Fastest way to increment a BitArray (binary number) by one?
body: <p>The following "Increment" method is working perfectly. But I wanted to know is there any faster way to do this in less steps.</p>
  
  <pre><code>    public BitArray Increment(BitArray bArray)
      {
          carry = true;
  
          for (i = 0; i &lt; 32; i++)
          {
              if (carry)
              {
                  if (bArray[i] == false)
                  {
                      bArray[i] = true;
                      carry = false;
                  }
                  else
                  {
                      bArray[i] = false;
                      carry = true;
                  }
              }
          }
          return bArray;
      }
  </code></pre>
  
  <p>Thanks....</p>