GenreCollection.Item Property

Gets the Genre at the specified index in the GenreCollection.

Namespace: Microsoft.Xna.Framework.Media
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)


public Genre this [
         int index
] { get; }

Property Value

A new Genre representing the genre at the specified index in this GenreCollection.


Each call returns a new Genre instance.

Genre resources such as the song and album collections for that genre are cached in each Genre instance. Retrieving and maintaining references to multiple instances of the same genre, and accessing the Songs or Albums collections on each of those instances, creates multiple copies of the song or album collections.

See Also


Genre Class
GenreCollection Class
GenreCollection Members
Microsoft.Xna.Framework.Media Namespace


Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone