/// <summary>
        /// Create a deep clone of this property collection
        /// </summary>
        /// <returns></returns>
        public object DeepClone()
        {
            var newList = new PropertyCollection();

            foreach (var p in this)
            {
                newList.Add((Property)p.DeepClone());
            }
            return(newList);
        }
示例#2
0
        /// <summary>
        /// Deep clones.
        /// </summary>
        public object DeepClone()
        {
            var clone = new PropertyCollection();

            foreach (var property in this)
            {
                clone.Add((Property)property.DeepClone());
            }
            return(clone);
        }