Ejemplo n.º 1
0
        public DxfValue Clone(CloneContext cloneContext)
        {
            DxfValue           dxfValue = new DxfValue();
            DxfObjectReference object0  = this.object_0 as DxfObjectReference;

            dxfValue.object_0         = object0 == null ? this.object_0 : (object)((DxfHandledObject)((DxfHandledObject)object0.Value).Clone(cloneContext)).Reference;
            dxfValue.string_0         = this.string_0;
            dxfValue.dxfValueFormat_0 = this.dxfValueFormat_0 == null ? (DxfValueFormat)null : this.dxfValueFormat_0.Clone();
            dxfValue.int_0            = this.int_0;
            return(dxfValue);
        }
Ejemplo n.º 2
0
 public T this[int index]
 {
     get
     {
         return((T)this.list_0[index].Value);
     }
     set
     {
         T oldItem = (T)this.list_0[index].Value;
         this.OnSetting(index, oldItem, value);
         this.list_0[index] = DxfObjectReference.GetReference((IDxfHandledObject)value);
         this.OnSet(index, oldItem, value);
     }
 }
Ejemplo n.º 3
0
        public virtual IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfObjectReference dxfObjectReference = (DxfObjectReference)cloneContext.GetExistingClone((IGraphCloneable)this);

            if (dxfObjectReference == null)
            {
                if (cloneContext.TargetModel == cloneContext.SourceModel)
                {
                    dxfObjectReference = this;
                }
                else
                {
                    dxfObjectReference = new DxfObjectReference();
                    cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)dxfObjectReference);
                    IGraphCloneable idxfHandledObject0 = (IGraphCloneable)this.idxfHandledObject_0;
                    dxfObjectReference.Value = (IDxfHandledObject)idxfHandledObject0.Clone(cloneContext);
                }
            }
            return((IGraphCloneable)dxfObjectReference);
        }
Ejemplo n.º 4
0
 public DxfHandledObject(DxfHandledObject ownerObjectSoftReference)
     : this()
 {
     this.dxfObjectReference_1 = ownerObjectSoftReference == null ? DxfObjectReference.Null : ownerObjectSoftReference.Reference;
 }
Ejemplo n.º 5
0
 public DxfHandledObject()
 {
     this.dxfObjectReference_0 = new DxfObjectReference((IDxfHandledObject)this);
 }
Ejemplo n.º 6
0
 internal virtual void vmethod_2(IDxfHandledObject ownerObjectSoftReference)
 {
     this.dxfObjectReference_1 = DxfObjectReference.GetReference(ownerObjectSoftReference);
 }
Ejemplo n.º 7
0
 public void SetValue(DxfHandledObject value)
 {
     this.object_0 = (object)DxfObjectReference.GetReference((IDxfHandledObject)value);
     this.string_0 = (string)null;
 }
Ejemplo n.º 8
0
 public DxfTypedObjectReference(ReferenceType referenceType, DxfObjectReference objectReference)
 {
     this.referenceType_0      = referenceType;
     this.dxfObjectReference_0 = objectReference;
 }
Ejemplo n.º 9
0
 public void method_0(DxfObjectReference objectReference)
 {
     this.action_0(objectReference);
 }
Ejemplo n.º 10
0
 public int Compare(DxfObjectReference x, DxfObjectReference y)
 {
     return(this.icomparer_0.Compare((U)x.Value, (U)y.Value));
 }