public void AddPersistentReactor(DxfHandledObject reactor) { if (this.dxfHandledObjectCollection_0 == null) { this.dxfHandledObjectCollection_0 = new DxfHandledObjectCollection <DxfHandledObject>(); } this.dxfHandledObjectCollection_0.Add(reactor); }
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); }
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; }