Example #1
0
        internal SLEntries Clone()
        {
            SLEntries es = new SLEntries();

            es.Items = new List<SLEntriesItemsTypeIndexPair>();
            foreach (SLEntriesItemsTypeIndexPair pair in this.Items)
            {
                es.Items.Add(new SLEntriesItemsTypeIndexPair(pair.Type, pair.Index));
            }

            es.MissingItems = new List<SLMissingItem>();
            foreach (SLMissingItem mi in this.MissingItems)
            {
                es.MissingItems.Add(mi.Clone());
            }

            es.NumberItems = new List<SLNumberItem>();
            foreach (SLNumberItem ni in this.NumberItems)
            {
                es.NumberItems.Add(ni.Clone());
            }

            es.ErrorItems = new List<SLErrorItem>();
            foreach (SLErrorItem ei in this.ErrorItems)
            {
                es.ErrorItems.Add(ei.Clone());
            }

            es.StringItems = new List<SLStringItem>();
            foreach (SLStringItem si in this.StringItems)
            {
                es.StringItems.Add(si.Clone());
            }

            return es;
        }
Example #2
0
        internal SLEntries Clone()
        {
            SLEntries es = new SLEntries();

            es.Items = new List <SLEntriesItemsTypeIndexPair>();
            foreach (SLEntriesItemsTypeIndexPair pair in this.Items)
            {
                es.Items.Add(new SLEntriesItemsTypeIndexPair(pair.Type, pair.Index));
            }

            es.MissingItems = new List <SLMissingItem>();
            foreach (SLMissingItem mi in this.MissingItems)
            {
                es.MissingItems.Add(mi.Clone());
            }

            es.NumberItems = new List <SLNumberItem>();
            foreach (SLNumberItem ni in this.NumberItems)
            {
                es.NumberItems.Add(ni.Clone());
            }

            es.ErrorItems = new List <SLErrorItem>();
            foreach (SLErrorItem ei in this.ErrorItems)
            {
                es.ErrorItems.Add(ei.Clone());
            }

            es.StringItems = new List <SLStringItem>();
            foreach (SLStringItem si in this.StringItems)
            {
                es.StringItems.Add(si.Clone());
            }

            return(es);
        }