C# Class SchoolsNearMe.Extensions.EnumExtensions

ファイルを表示 Open project: MrKevHunter/SchoolsNearMe

Public Methods

Method 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 method

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
return string