我有List<List<Vertex>>,Vertex有财产id。我需要添加List<Vertex>>到这个列表中,但不是重复的列表。
public void AddComponent(List<Vertex> list)
{
List<List<Vertex>> components = new List<List<Vertex>>;
//I need something like
if (!components.Contain(list)) components.Add(list);
}