List<ComponentType> A= new List<ComponentType>(); List<ComponentType> B= new List<ComponentType>(); …… if (A.All(t => B.Any(b => b == t))) result = true;
集合A是集合B的子集(被包括或相同)
dyfisgod 2020-01-03 14:40 原文
List<ComponentType> A= new List<ComponentType>(); List<ComponentType> B= new List<ComponentType>(); …… if (A.All(t => B.Any(b => b == t))) result = true;
集合A是集合B的子集(被包括或相同)