예제 #1
0
        static BuildableMusicArtistOptions ArtistWithGenres(string artist,
                                                            IEnumerable <string> genres,
                                                            BuildableMusicArtistOptions options)
        {
            if (options == null)
            {
                options = new BuildableMusicArtistOptions {
                    Title = artist
                };
            }

            foreach (var genre in genres)
            {
                options.OnGenre(genre);
            }

            return(options);
        }
예제 #2
0
        static BuildableMusicArtistOptions ArtistWithGenres (string artist,
                                                             IEnumerable<string> genres,
                                                             BuildableMusicArtistOptions options)
        {
            if (options == null) {
                options = new BuildableMusicArtistOptions { Title = artist };
            }

            foreach (var genre in genres) {
                options.OnGenre (genre);
            }

            return options;
        }