Ejemplo n.º 1
0
        public SongCollection GetAllByArtist(string artist)
        {
            SongCollection tempSongs = new SongCollection();

            foreach (Song song in this)
            {
                if (song.Artist.ToLower().Contains((artist.ToLower())))
                {
                    tempSongs.Add(song);
                }
            }

            return(tempSongs);
        }