public int[] getAlbumYearByName(String name)
 {
     db = new Database();
     List<Album> albums = db.getAlbumByName(name);
     int [] godini = new int[albums.Count];
     int i = 0;
     foreach (Album temp in albums)
     {
         godini[i++] = temp.Year;
     }
     return godini;
 }
Esempio n. 2
0
        public int[] getAlbumYearByName(String name)
        {
            db = new Database();
            List <Album> albums = db.getAlbumByName(name);

            int [] godini = new int[albums.Count];
            int    i      = 0;

            foreach (Album temp in albums)
            {
                godini[i++] = temp.Year;
            }
            return(godini);
        }