Exemplo n.º 1
0
        internal SLTupleCache Clone()
        {
            SLTupleCache tc = new SLTupleCache();

            tc.HasEntries = this.HasEntries;
            tc.Entries    = this.Entries.Clone();

            tc.Sets = new List <SLTupleSet>();
            foreach (SLTupleSet ts in this.Sets)
            {
                tc.Sets.Add(ts.Clone());
            }

            tc.QueryCache = new List <SLQuery>();
            foreach (SLQuery q in this.QueryCache)
            {
                tc.QueryCache.Add(q.Clone());
            }

            tc.ServerFormats = new List <SLServerFormat>();
            foreach (SLServerFormat sf in this.ServerFormats)
            {
                tc.ServerFormats.Add(sf.Clone());
            }

            return(tc);
        }
Exemplo n.º 2
0
        internal SLTupleCache Clone()
        {
            SLTupleCache tc = new SLTupleCache();
            tc.HasEntries = this.HasEntries;
            tc.Entries = this.Entries.Clone();

            tc.Sets = new List<SLTupleSet>();
            foreach (SLTupleSet ts in this.Sets)
            {
                tc.Sets.Add(ts.Clone());
            }

            tc.QueryCache = new List<SLQuery>();
            foreach (SLQuery q in this.QueryCache)
            {
                tc.QueryCache.Add(q.Clone());
            }

            tc.ServerFormats = new List<SLServerFormat>();
            foreach (SLServerFormat sf in this.ServerFormats)
            {
                tc.ServerFormats.Add(sf.Clone());
            }

            return tc;
        }