internal SLPivotCacheRecord Clone()
        {
            SLPivotCacheRecord pcr = new SLPivotCacheRecord();

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

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

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

            pcr.BooleanItems = new List <SLBooleanItem>();
            foreach (SLBooleanItem bi in this.BooleanItems)
            {
                pcr.BooleanItems.Add(bi.Clone());
            }

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

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

            pcr.DateTimeItems = new List <SLDateTimeItem>();
            foreach (SLDateTimeItem dti in this.DateTimeItems)
            {
                pcr.DateTimeItems.Add(dti.Clone());
            }

            pcr.FieldItems = new List <uint>();
            foreach (uint i in this.FieldItems)
            {
                pcr.FieldItems.Add(i);
            }

            return(pcr);
        }
        internal SLPivotCacheRecord Clone()
        {
            SLPivotCacheRecord pcr = new SLPivotCacheRecord();

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

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

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

            pcr.BooleanItems = new List<SLBooleanItem>();
            foreach (SLBooleanItem bi in this.BooleanItems)
            {
                pcr.BooleanItems.Add(bi.Clone());
            }

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

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

            pcr.DateTimeItems = new List<SLDateTimeItem>();
            foreach (SLDateTimeItem dti in this.DateTimeItems)
            {
                pcr.DateTimeItems.Add(dti.Clone());
            }

            pcr.FieldItems = new List<uint>();
            foreach (uint i in this.FieldItems)
            {
                pcr.FieldItems.Add(i);
            }

            return pcr;
        }