예제 #1
0
        public Fish FindFish(string name)
        {
            Fish fish = fishInPool.FirstOrDefault(x => x.Name == name);

            return(fish);
        }
예제 #2
0
        public Fish FindFish(string name)
        {
            Fish findCurrentFish = this.fishInPool.FirstOrDefault(f => f.Name == name);

            return(findCurrentFish);
        }