コード例 #1
0
        public override ResultPPA GetClone()
        {
            ResultPPAA result = new ResultPPAA();

            clones.Add(result);
            clonesHashed.Add(result);

            return(result);
        }
コード例 #2
0
        private void FetchDataClone(ResultPPAA clone)
        {
            Dictionary <int, List <Permutation> > storedDataClone = clone.StoredData;

            foreach (var key in storedDataClone.Keys)
            {
                if (!storedData.ContainsKey(key))
                {
                    storedData[key] = new List <Permutation>();
                }

                storedData[key].AddRange(storedDataClone[key]);
            }
        }