public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value == null) { return(String.Empty); } return(RefactorUtil.GetDescription(value)); }
public static string GetDescription <T>(this T enumValue) where T : struct { return(RefactorUtil.GetDescription(enumValue)); }