// list = normalList.Except(repairList).ToList(); //差集 // list = normalList.Union(repairList).ToList(); //并集 list = normalList.Intersect(repairList).ToList(); //交集 bool result = list.All(repairList.Contains) && list.Count() == repairList.Count(); if (result) { msg = "全包含"; return true; } else { msg = "不全包含"; return false; }