private string GetPostType(enPostType value) { var memberInfo = value.GetType().GetMember(value.ToString()); if (memberInfo.Length != 1) { return(null); } var displayAttr = memberInfo[0].GetCustomAttributes(typeof(IODescriptionAttribute), false).ToString(); return(displayAttr); }
private string GetPostType(enPostType value) { var memberInfo = value.GetType().GetMember(value.ToString()); if (memberInfo.Length != 1) return null; var displayAttr = memberInfo[0].GetCustomAttributes(typeof(IODescriptionAttribute),false).ToString(); return displayAttr; }