protected void Combine(params ShapeDescription[] list) { var empty = new ShapeDescriptionSet(); _set.Add(empty); foreach (var val in list) { var copy = new List<ShapeDescriptionSet>(); foreach (var ele in _set) { for (int i = 0; i <= ele.Count; i++) { var tmp = new ShapeDescriptionSet(ele); tmp.Insert(i, val); copy.Add(tmp); } } _set = copy; } }
protected void Combine(params ShapeDescription[] list) { var empty = new ShapeDescriptionSet(); _set.Add(empty); foreach (var val in list) { var copy = new List <ShapeDescriptionSet>(); foreach (var ele in _set) { for (int i = 0; i <= ele.Count; i++) { var tmp = new ShapeDescriptionSet(ele); tmp.Insert(i, val); copy.Add(tmp); } } _set = copy; } }
public ShapeDescriptionSet(ShapeDescriptionSet s) { _set = new List<ShapeDescription>(s._set); }
public ShapeDescriptionSet(ShapeDescriptionSet s) { Set = new List <ShapeDescription>(s.Set); }