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; } } }
public void AddOriginator(IOriginator originator) { this.originators.Add(originator, originator.SaveState()); }