Пример #1
0
        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);
        }
Пример #2
0
 public CTIContextCollectionPropertyDescriptor(CTIContextCollection coll, int idx)
     : base("#" + idx.ToString(), null)
 {
     this.collection = coll;
     this.index = idx;
 }
Пример #3
0
        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;
        }
Пример #4
0
 public CTIContextCollectionPropertyDescriptor(CTIContextCollection coll, int idx)
     : base("#" + idx.ToString(), null)
 {
     this.collection = coll;
     this.index      = idx;
 }