コード例 #1
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfBlockRepresentationData representationData = (DxfBlockRepresentationData)from;

            this.Version      = representationData.Version;
            this.DynamicBlock = Class906.smethod_0(cloneContext, representationData.DynamicBlock, false);
        }
コード例 #2
0
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfBlockRepresentationData representationData = (DxfBlockRepresentationData)cloneContext.GetExistingClone((IGraphCloneable)this);

            if (representationData == null)
            {
                representationData = new DxfBlockRepresentationData();
                cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)representationData);
                representationData.CopyFrom((DxfHandledObject)this, cloneContext);
            }
            return((IGraphCloneable)representationData);
        }