Пример #1
0
 /// <summary>
 /// Copies all raws from another raw container.
 /// </summary>
 /// <param name="other">The other raw container.</param>
 public void CopyFrom(RawContainer other)
 {
     //Copy from for each list
     for (int i = 0; i < lists.Count; i++)
     {
         lists[i].CopyFrom(other.lists[i]);
     }
 }
Пример #2
0
 /// <summary>
 /// Initializes a new <see cref="IndexEntry"/> using the supplied object entry, file name, and tag hierarchy.
 /// </summary>
 /// <param name="objectEntry">The object entry for this index entry.</param>
 /// <param name="filename">The file path of this index entry.</param>
 /// <param name="tagHierarchy">The tag hierarchy for this index entry.</param>
 public IndexEntry(ObjectEntry objectEntry, string filename, TagHierarchy tagHierarchy)
 {
     //Setup
     this.tagHierarchy = tagHierarchy;
     this.objectEntry  = objectEntry;
     Filename          = filename;
     Raws    = new RawContainer();
     Strings = new StringContainer();
 }
Пример #3
0
        /// <summary>
        /// Creates a shallow copy of the container.
        /// </summary>
        /// <returns>A copy of this container.</returns>
        public object Clone()
        {
            //Prepare
            RawContainer container = new RawContainer();

            for (int i = 0; i < container.lists.Count; i++)
            {
                container.lists[i] = (RawList)lists[i].Clone();
            }

            //Return
            return(container);
        }