Beispiel #1
0
 /// <summary>
 /// Initializes a new <see cref="IndexEntry"/> using the supplied object entry and file name.
 /// </summary>
 /// <param name="objectEntry">The object entry for this index entry.</param>
 /// <param name="filename">The file path of this index entry.</param>
 public IndexEntry(ObjectEntry objectEntry, string filename)
 {
     //Setup
     this.objectEntry = objectEntry;
     this.filename    = filename;
     raws             = new RawContainer();
 }
Beispiel #2
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);
        }