C# Класс 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.
Наследование: IGenreManager
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
LoadGenereDictionary ( ) : void

Описание методов

GetGenreCode() публичный Метод

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.
Результат byte

GetGenreList() публичный статический Метод

Returns a copy of the list of standard genre names.
public static GetGenreList ( ) : string[]
Результат string[]

GetGenreName() публичный Метод

Returns the name of genre corresponding with the given code.
public GetGenreName ( byte code ) : string
code byte The code of the genre.
Результат string

TranslateToID3Friendly() публичный Метод

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.
Результат string

TranslateToUserFriendly() публичный Метод

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.
Результат string