Exemplo n.º 1
0
 public override void Dispose()
 {
     base.Dispose();
     if (this.dxfDictionaryEntryCollection_0 == null)
     {
         return;
     }
     foreach (DxfDictionaryEntry dxfDictionaryEntry in (ActiveList <IDictionaryEntry>) this.dxfDictionaryEntryCollection_0)
     {
         if (dxfDictionaryEntry != null && dxfDictionaryEntry.Value != null)
         {
             dxfDictionaryEntry.Value.Dispose();
         }
     }
     this.dxfDictionaryEntryCollection_0 = (DxfDictionaryEntryCollection)null;
 }
Exemplo n.º 2
0
        public DxfDictionaryEntryCollection GetAll(string entryName)
        {
            DxfDictionaryEntryCollection dictionaryEntryCollection = new DxfDictionaryEntryCollection();
            IList <IDictionaryEntry>     dictionaryEntryList       = this.method_1(entryName);

            if (dictionaryEntryList != null)
            {
                if (dictionaryEntryList.Count == 1)
                {
                    dictionaryEntryCollection.Add(dictionaryEntryList[0]);
                }
                else
                {
                    foreach (IDictionaryEntry dictionaryEntry in (ActiveList <IDictionaryEntry>) this)
                    {
                        if (dictionaryEntry != null && string.Compare(entryName, dictionaryEntry.Name, StringComparison.InvariantCultureIgnoreCase) == 0)
                        {
                            dictionaryEntryCollection.Add(dictionaryEntry);
                        }
                    }
                }
            }
            return(dictionaryEntryCollection);
        }
Exemplo n.º 3
0
 public TypedWrapper(DxfDictionaryEntryCollection wrappedEntries)
 {
     this.dxfDictionaryEntryCollection_0 = wrappedEntries;
 }