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); }
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); }