All C# extension methods for type enum
-
GetEnumDescription
Gets the description attribute assigned to an item in an Enum.
-
Generic Enum to List<T> converter
http://devlicio.us/blogs/joe_niland/archive/2006/10/10/Generic-Enum-to-List_3C00_T_3E00_-converter.aspx
-
Enum<T>.Parse() and Enum<T>.TryParse()
Parses the specified string value into the Enum type passed. Also contains a bool to determine whether or not the case should be ignored.
-
GetEnumDescription
Gets the description attribute assigned to an item in an Enum.
-
IsSet
I did not write this I just found it very useful, check http://stackoverflow.com/questions/7244 for original post.
-
Enum Name To Display Name
Convert an CamelCase enum name to displayable string
-
Enum.GetDescription
获取项目中分配给 Enum 的描述属性。
-
ToEnum
ToEnum - with nullable type
-
Enum HasDescription
Multiple ways to check if an enum has description
-
Enum.ParseWithDefault
.NET 4.5 version of Enum.ParseUnstrict
-
Enum.PaseUnstrict
Permit Enum Parse everytime with valid values using a defaultValue param
-
GetStringValue
If your enum member has attribute Display from System.ComponentModel.Annotations you can get this annotation value
-
GetEnumDescription
获取项目中分配给 Enum 的描述属性。
-
GetEnumDescription
获取项目中分配给 Enum 的描述属性。
-
GetDescription
获取项目中分配给 Enum 的描述属性。
-
GetEnumDescription
获取项目中分配给 Enum 的描述属性。
-
GetEnumDescriptions
Gets the description attribute assigned to an item in an Enum.
-
GetEnumDescriptions
GetEnumDescriptions