title: C# How to remove the n-th bit in integer?
body: <p>I am trying to find a way to remove a bit from an integer. The solution must not use string operations.
  For example, I have the number 27, which is 1<strong>1</strong>011 in binary.
  I want to remove the third bit so it leaves me with 1011.
  Or we have 182 (10110110), remove the 6th bit so the result is 1110110 (which is 118). I am trying to think of the algorithm how to do that, but so far no luck, and I can't find useful information on the internet.</p>
  
  <p>I know how to use bitwise operators and how to extract or manipulate bits in integers (change values, exchange values etc), but I don't know how to 'remove' a certain bit.</p>
  
  <p>I am not looking for code, just the logic of the operation. If anyone could help me, that would be awesome!</p>
  
  <p>Regards,
  Toni</p>