コード例 #1
0
 public void AddPersistentReactor(DxfHandledObject reactor)
 {
     if (this.dxfHandledObjectCollection_0 == null)
     {
         this.dxfHandledObjectCollection_0 = new DxfHandledObjectCollection <DxfHandledObject>();
     }
     this.dxfHandledObjectCollection_0.Add(reactor);
 }
コード例 #2
0
        public virtual DxfHandledObjectCollection <T> Clone(
            CloneContext cloneContext)
        {
            DxfHandledObjectCollection <T> objectCollection = new DxfHandledObjectCollection <T>(this.Count);

            foreach (T obj in this)
            {
                objectCollection.Add((T)obj.Clone(cloneContext));
            }
            return(objectCollection);
        }
コード例 #3
0
 public void RemovePersistentReactor(DxfHandledObject reactor)
 {
     if (this.dxfHandledObjectCollection_0 == null)
     {
         return;
     }
     this.dxfHandledObjectCollection_0.Remove(reactor);
     if (this.dxfHandledObjectCollection_0.Count != 0)
     {
         return;
     }
     this.dxfHandledObjectCollection_0 = (DxfHandledObjectCollection <DxfHandledObject>)null;
 }