public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext) { base.CopyFrom(from, cloneContext); DxfDictionaryWithDefault dictionaryWithDefault = (DxfDictionaryWithDefault)from; if (dictionaryWithDefault.DefaultEntry == null) { return; } int index = 0; DxfObject defaultEntry = dictionaryWithDefault.DefaultEntry; foreach (DxfDictionaryEntry entry in (ActiveList <IDictionaryEntry>)dictionaryWithDefault.Entries) { if (entry.Value != defaultEntry) { ++index; } else { this.DefaultEntry = this.Entries[index].Value; break; } } }
internal static DxfDictionaryWithDefault smethod_14( bool useFixedHandles, out string dictionaryName) { DxfDictionaryWithDefault dictionaryWithDefault = new DxfDictionaryWithDefault(); if (useFixedHandles) { dictionaryWithDefault.SetHandle(14UL); } dictionaryName = "ACAD_PLOTSTYLENAME"; return(dictionaryWithDefault); }
public override IGraphCloneable Clone(CloneContext cloneContext) { DxfDictionaryWithDefault dictionaryWithDefault = (DxfDictionaryWithDefault)cloneContext.GetExistingClone((IGraphCloneable)this); if (dictionaryWithDefault == null) { dictionaryWithDefault = new DxfDictionaryWithDefault(false); cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)dictionaryWithDefault); dictionaryWithDefault.CopyFrom((DxfHandledObject)this, cloneContext); cloneContext.CloneBuilders.Add((ICloneBuilder) new DxfDictionary.Class753((DxfDictionary)dictionaryWithDefault)); } return((IGraphCloneable)dictionaryWithDefault); }