Example #1
0
 /// <summary>
 /// Adds a field at the specified position in the collection.
 /// </summary>
 /// <param name="index">The index of the field to add</param>
 /// <param name="field">The field to add</param>
 public void Insert(int index, GffField field)
 {
     InnerList.Insert(index, field);
 }
Example #2
0
 /// <summary>
 /// Adds a field to the dictionary.
 /// </summary>
 /// <param name="label">The field's label</param>
 /// <param name="field">The field's data</param>
 public void Add(string label, GffField field)
 {
     // Add the entry to the hashtable in the dictionary, then
     // add it to the end of our ordered entries collection.  The
     // ordered entries collectoin will allow us to traverse the
     // dictionary in the order that the entries were added, preserving
     // this order.
     InnerHashtable.Add(label, field);
     DictionaryEntry entry = new DictionaryEntry(label, field);
     orderedEntries.Add(entry);
 }
Example #3
0
 /// <summary>
 /// Adds a field to the end of the collection.
 /// </summary>
 /// <param name="field"></param>
 public void Add(GffField field)
 {
     InnerList.Add(field);
 }