title: Message queue looping
body: <p>I have a console app in c# and I am trying to receive a message from a message queue until the message queue is empty.  So something like, </p>
  
  <pre><code>MessageQueue queue = new MessageQueue();
  While(queue.notempty)
  {
      queue.receive(...)
  }
  </code></pre>
  
  <p>How can I do this?  </p>
  
  <p>Thanks.</p>