Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
The GenreCollection class provides access to all genres in the device's media library.
Use the MediaLibrary.Genres property to obtain the genre collection.
The GenreCollection does not immediately instantiate instances of all genres in the collection. Instead, individual Genre objects are created each time a genre is accessed through the collection's Item indexer.