C# Class Achamenes.ID3.StandardGenreManager

This class implements genre management for the standard and extended genre codes as defined in Appendix A of the formal ID3 v2.3 documentation.
Inheritance: IGenreManager
Afficher le fichier Open project: sahands/a-id3 Class Usage Examples

Méthodes publiques

Méthode Description
GetGenreCode ( string genreName ) : byte

Returns the genre code of the specified genre name.

The search is case-insensitive.

GetGenreList ( ) : string[]

Returns a copy of the list of standard genre names.

GetGenreName ( byte code ) : string

Returns the name of genre corresponding with the given code.

TranslateToID3Friendly ( string genre ) : string

Translates a user entered genre name to a string that can be written to an ID3 tag.

TranslateToUserFriendly ( string genre ) : string

Translates a genre string as found in an ID3 tag to a user friendly representative.

Private Methods

Méthode Description
LoadGenereDictionary ( ) : void

Method Details

GetGenreCode() public méthode

Returns the genre code of the specified genre name.
The search is case-insensitive.
public GetGenreCode ( string genreName ) : byte
genreName string The name of the genre.
Résultat byte

GetGenreList() public static méthode

Returns a copy of the list of standard genre names.
public static GetGenreList ( ) : string[]
Résultat string[]

GetGenreName() public méthode

Returns the name of genre corresponding with the given code.
public GetGenreName ( byte code ) : string
code byte The code of the genre.
Résultat string

TranslateToID3Friendly() public méthode

Translates a user entered genre name to a string that can be written to an ID3 tag.
public TranslateToID3Friendly ( string genre ) : string
genre string The string representing the genre as entered by the user.
Résultat string

TranslateToUserFriendly() public méthode

Translates a genre string as found in an ID3 tag to a user friendly representative.
public TranslateToUserFriendly ( string genre ) : string
genre string The genre name as found in the ID3 tag.
Résultat string