title: How to get the bit removed from the bitwise right shift in c#
body: <p>I have a int number And I have to shift it to the right a couple of times.</p>
  
  <pre><code>x   = 27 = 11011
  x&gt;&gt;1= 13 = 1101
  x&gt;&gt;2=  6 = 110
  x&gt;&gt;3=  3 = 11
  </code></pre>
  
  <p>I would like to get the value bit value that has been removed. I would have to get: 1, 1, 0</p>
  
  <p>How can I get the removed value</p>