用 List<dynamic> :
var accountlist = new List<dynamic>(); accountlist.Add(new { Id = 1, Name = "a", RoleName = "b" }); var account = accountlist.FirstOrDefault(x => x.Id == 1 && x.Name == "a" && x.RoleName == "b"); accountlist.Remove(account);
解决了,多谢高人!