示例#1
0
        /// <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;
        }
示例#2
0
        /// <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);
        }