Exemple #1
0
        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);
        }
Exemple #2
0
 public Actor FindActorById(int raisedByActorId) => Actors.Find(x => x.Id == raisedByActorId);