摘要:
Class: class Recipe { public int ID { get; set; } public string RecipeName { get; set; } public string Comment { get; set; } public string Quantity { 阅读全文
摘要:
如果是list中存储的是string,int等基本数据类型,直接使用Distinct方法 List<string> lst = new List<string>() {"A","B","C","A" }; var result = lst.Distinct().ToList(); 2.如果存储的是类 阅读全文