private Actor findActor(string actorName) { Actor actor; if (actors.TryGetValue(actorName, out actor)) { return(actor); } actor = Actors.Find(x => x.Name == actorName); actors.Add(actorName, actor); return(actor); }
public Actor FindActorById(int raisedByActorId) => Actors.Find(x => x.Id == raisedByActorId);