title: Foreach Issue: collection was modified enumeration operation may not execute
body: <p>I am having an issue with this code. Basically the <code>ProfileControl</code> is a custom control, <code>profileList</code> is <code>ListBox</code> and <code>profileCollection</code> is an <code>ObservableCollection</code>. </p>
  
  <pre><code>foreach (ProfileControl item in profileList.SelectedItems) 
  {
       profileCollection.Remove(item);
  }
  </code></pre>
  
  <p>The code is working perfectly but I am getting the message:</p>
  
  <blockquote>
    <p>Collection was modified enumeration operation may not execute.</p>
  </blockquote>
  
  <p>Please advise me, Thanks.  </p>