title: bitwise combination as integer to enum
body: <p>Currently i'm trying to parse a integer that is a bitwise combination to a enum from a third-party API. For example: i receive a <code>integer</code> with the value <code>1035</code> this value holds three enum values; </p>
  
  <pre><code>enum Status
      1= "Status 1" 
      2= "Status 2" 
      4= "Status 3" 
      8= "Status 4" 
      ........ 
      1024= "Status 8"
  end enum
  </code></pre>
  
  <p>So i need a function that converts the value <code>1035</code> to <code>Status 1 + Status 2 + Status 4 + Status 8</code></p>
  
  <p>Tried to convert it to Bit and then use bit shifting but this doesn't give me the right results... Hopefully someone could help me out in C# or vb.net example.</p>