예제 #1
0
        public void Save(IOriginator originator)
        {
            Meme meme = originator.SaveState();

            List <IOriginator> temp = originators.Keys.ToList();

            for (int i = 0; i < temp.Count; i++)
            {
                var key = temp[i];
                if (key == originator)
                {
                    originators[key] = key.SaveState();
                    return;
                }
            }
        }
예제 #2
0
 public void AddOriginator(IOriginator originator)
 {
     this.originators.Add(originator, originator.SaveState());
 }