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;/
Users us_end = new Users(); for
Remove it in place by finding the item inside the remove statement, not via an additional copy:
List us = ((List)Application["Users_On"]); us.Remove(us.FirstOrDefault(u => u.ID == (int)Session["Current_Id"])); Application["Users_On"] = us;