예제 #1
0
    public static string GetEnumDescription(this Enum value)
    {
        if (value == null)
        {
            return(string.Empty);
        }

        return(EnumMapper.FormatEnum(value.GetType(), value));
    }
예제 #2
0
 public override void Decorate()
 {
     if (Value != null)
     {
         try
         {
             Value = EnumMapper.FormatEnum(localizer, enumType, Value);
         }
         catch
         {
         }
     }
 }