/// <summary> /// Returns a deep copy. /// </summary> /// <param name="model">The model the copy belongs to.</param> public ItemList Clone(GraphModel model) { ItemList l = new ItemList(model); for (int i = 0; i < Count; i++) { l.Add(this[i].Clone()); } return l; }