/*#############################################################*/ private static string getShowItem <TEnum>(TEnum enumValue) { if (enumValue == null) { return(null); } string text = OrionUtils.GetEnumDisplayName(enumValue); return(string.Format("<span class=\"item-{0}\">{1}</span>", HttpUtility.HtmlEncode(enumValue.ToString()), HttpUtility.HtmlEncode(text) )); }
/// <summary>取得 Method | Property | Field DisplayAttribute 中的字串</summary> public static string GetDisplayName(this Enum enumValue) { return(OrionUtils.GetEnumDisplayName(enumValue)); }