Get Enum Value and DescriptionAttribute from String
Get Enum Value from String
1 | var em = (ChooseEnum) Enum.Parse( typeof(ChooseEnum), desc); |
Get DescriptionAttribute from Enum Value
1 | public static string ConvertToSql(Enum value) |
Reference Links: C# Get and Parse DescriptionAttribute of Enum Type
How to get the value corresponding to Enum object from string in C#
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.


