title: Remove and Return First Item of List
body: <p>I was wondering if there was a build in method to remove and return the first item of a list with one method/command.</p>
  
  <p>I used this, which was not pretty</p>
  
  <pre><code>Item currentItem = items.First();
  items.RemoveAt(0);
  </code></pre>
  
  <p>So I could wrote an extension-method:</p>
  
  <pre><code>public static class ListExtensions
  {
      public static T RemoveAndReturnFirst&lt;T&gt;(this List&lt;T&gt; list)
      {
          T currentFirst = list.First();
          list.RemoveAt(0);
          return currentFirst;
      }
   }
  
  //Example code
  Item currentItem = items.RemoveAndReturnFirst();
  </code></pre>
  
  <p>Is this the best possibility or is there any built-in method?</p>
  
  <p>The list is returned from a nHibernate-Query and therefore it should remain a <code>List&lt;T&gt;</code>.</p>