johnwarren + project   6

c# - How to get the Display Name Attribute of an Enum member via MVC razor code? - Stack Overflow
public static string GetDisplayName(this Enum enumValue)
{
return enumValue.GetType().GetMember(enumValue.ToString())
.First()
.GetCustomAttribute<DisplayAttribute>()
.Name;
}
ou  c#  project 
june 2016 by johnwarren

Copy this bookmark:



description:


tags: