C# Class SchoolsNearMe.Extensions.EnumExtensions

Afficher le fichier Open project: MrKevHunter/SchoolsNearMe

Méthodes publiques

Méthode Description
GetDescription ( this en ) : string

Retrieve the description on the enum, e.g. [Description("Bright Pink")] BrightPink = 2, Then when you pass in the enum, it will retrieve the description

Method Details

GetDescription() public static méthode

Retrieve the description on the enum, e.g. [Description("Bright Pink")] BrightPink = 2, Then when you pass in the enum, it will retrieve the description
public static GetDescription ( this en ) : string
en this The Enumeration
Résultat string