Exemple #1
0
 public static string GetLocalizedShortName(this DisplayAttribute attribute)
 {
     return(GetLocalizedString(attribute, () => attribute.ShortName) ??
            attribute.GetPropertyValue(a => a.GetShortName(), null));
 }
Exemple #2
0
 public static string GetLocalizedPrompt(this DisplayAttribute attribute)
 {
     return(GetLocalizedString(attribute, () => attribute.Prompt) ??
            attribute.GetPropertyValue(a => a.GetPrompt(), null));
 }
Exemple #3
0
 public static string GetLocalizedDescription(this DisplayAttribute attribute)
 {
     return(GetLocalizedString(attribute, () => attribute.Description) ??
            attribute.GetPropertyValue(a => a.GetDescription(), null));
 }