public DiscretePicasaAlbum[] ByDecodedName(string decodedName) { List <DiscretePicasaAlbum> result = new List <DiscretePicasaAlbum> (); foreach (PicasaEntry entry in picasaAlbums) { DiscretePicasaAlbum album = GoogleNameUtilities.DecodeGoogleAlbumName(picasaAlbum: entry); if (album != null && album.Name == decodedName) { result.Add(album); } } return(result.ToArray()); }
public string[] DecodedNames() { HashSet <string> albumNames = new HashSet <string> (); foreach (PicasaEntry entry in picasaAlbums) { DiscretePicasaAlbum album = GoogleNameUtilities.DecodeGoogleAlbumName(picasaAlbum: entry); if (album != null) { albumNames.Add(album.Name); } } return(albumNames.ToArray()); }