public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value == null)
            {
                return(String.Empty);
            }

            return(RefactorUtil.GetDescription(value));
        }
Beispiel #2
0
 public static string GetDescription <T>(this T enumValue) where T : struct
 {
     return(RefactorUtil.GetDescription(enumValue));
 }