public object Clone() { //First we create an instance of this specific type. CTIOutboundContextCollection newObject = new CTIOutboundContextCollection(); for (int i = 0; i < this.Count; i++) { newObject.Add((CTIOutboundContext)this[i].Clone()); } return(newObject); }
public CTIOutboundContextCollectionPropertyDescriptor(CTIOutboundContextCollection coll, int idx) : base("#" + idx.ToString(), null) { this.collection = coll; this.index = idx; }
public object Clone() { //First we create an instance of this specific type. CTIOutboundContextCollection newObject = new CTIOutboundContextCollection(); for (int i = 0; i < this.Count; i++) { newObject.Add((CTIOutboundContext)this[i].Clone()); } return newObject; }