/// <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); }
/// <summary> /// Deep clones. /// </summary> public object DeepClone() { var clone = new PropertyCollection(); foreach (var property in this) { clone.Add((Property)property.DeepClone()); } return(clone); }