public object Clone() { //First we create an instance of this specific type. CTIContextCollection newObject = new CTIContextCollection(); for (int i = 0; i < this.Count; i++) { newObject.Add((CTIContext)this[i].Clone()); } return(newObject); }
public CTIContextCollectionPropertyDescriptor(CTIContextCollection 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. CTIContextCollection newObject = new CTIContextCollection(); for (int i = 0; i < this.Count; i++) { newObject.Add((CTIContext)this[i].Clone()); } return newObject; }