/// <summary> /// Creates a deep copy of the collection. /// </summary> /// <remarks> /// Creates a deep copy of the collection. /// </remarks> public object Clone() { ExpandedNodeIdCollection clone = new ExpandedNodeIdCollection(this.Count); foreach (ExpandedNodeId element in this) { clone.Add((ExpandedNodeId) Utils.Clone(element)); } return clone; }
/// <summary> /// Creates a deep copy of the collection. /// </summary> /// <remarks> /// Creates a deep copy of the collection. /// </remarks> public new object MemberwiseClone() { ExpandedNodeIdCollection clone = new ExpandedNodeIdCollection(this.Count); foreach (ExpandedNodeId element in this) { clone.Add((ExpandedNodeId)Utils.Clone(element)); } return(clone); }