title: Removing multiple entries in dictionary collection using Linq
body: <p>I have this  class object:</p>
  
  <pre><code>    public class LoginInfo
      {
          public string EmailAddress;
          public string Alias;
          public string GuidLogOn;
      }
  </code></pre>
  
  <p>I declare this collection:</p>
  
  <pre><code>    public static Dictionary&lt;string, LoginInfo&gt; Users = new Dictionary&lt;string, LoginInfo&gt;();
  </code></pre>
  
  <p>I add an entry like this:</p>
  
  <pre><code>    LoginInfo loginInfo = new LoginInfo();
      loginInfo.Alias = "alias";         
      loginInfo.EmailAddress = "email";
      loginInfo.GuidLogOn = "guidLogOn";
      Users.Add("guidLogOn", loginInfo);
  </code></pre>
  
  <p>I then want to remove it like this:</p>
  
  <pre><code>Users.ToList().RemoveAll(x =&gt; x.Value.EmailAddress == "email" &amp;&amp; x.Value.Alias == "alias");
  </code></pre>
  
  <p>But it still exists in the original collection.</p>
  
  <p>Thanks</p>