Class OTZCommonEnumExtensions
列挙型に追加する共通属性の機能を提供します。
Inheritance
System.Object
OTZCommonEnumExtensions
名前空間: OTZControls.Enumerations.Extensions
アセンブリ: OTZControls.dll
Syntax
public static class OTZCommonEnumExtensions
メソッド
GetDescription(Enum)
列挙型の文字列を取得します。
宣言
public static string GetDescription(this Enum value)
パラメーター
型 | 名前 | 説明 |
---|---|---|
System.Enum | value |
戻り値
型 | 説明 |
---|---|
System.String |
GetValue(Enum)
列挙型の値を取得します。
宣言
public static string GetValue(this Enum value)
パラメーター
型 | 名前 | 説明 |
---|---|---|
System.Enum | value |
戻り値
型 | 説明 |
---|---|
System.String |