Beispiel #1
0
        /// <summary>
        /// Creates a deep copy of the collection.
        /// </summary>
        /// <remarks>
        /// Creates a deep copy of the collection.
        /// </remarks>
        public object Clone() {
            LocalizedTextCollection clone = new LocalizedTextCollection(this.Count);

            foreach (LocalizedText element in this) {
                clone.Add((LocalizedText) Utils.Clone(element));
            }

            return clone;
        }
Beispiel #2
0
        /// <summary>
        /// Creates a deep copy of the collection.
        /// </summary>
        /// <remarks>
        /// Creates a deep copy of the collection.
        /// </remarks>
        public new object MemberwiseClone()
        {
            LocalizedTextCollection clone = new LocalizedTextCollection(this.Count);

            foreach (LocalizedText element in this)
            {
                clone.Add((LocalizedText)Utils.Clone(element));
            }

            return(clone);
        }