title: "List.Remove" in C# does not remove item?
body: <p>Hello how can i remove item from generic list here is my code im trying to do it right but i dont know where i make mistake;/</p>
  
  <pre><code>Users us_end = new Users();
  foreach (var VARIABLE in ((List&lt;Users&gt;)Application["Users_On"]))
  {
      if(VARIABLE.Id == (int)Session["Current_Id"])
      {
          us_end.Name = VARIABLE.Name;
          us_end.Id = VARIABLE.Id;
          us_end.Data = VARIABLE.Data;
      }
  }
  List&lt;Users&gt; us = ((List&lt;Users&gt;)Application["Users_On"]);
  us.Remove(us_end);
  Application["Users_On"] = us;
  </code></pre>