get the value of DisplayName attribute
Try these utility methods of mine: using System.ComponentModel; using System.Globalization; using System.Linq; public static T GetAttribute<T>(this MemberInfo member, bool isRequired) where T : Attribute { var attribute = member.GetCustomAttributes(typeof(T), false).SingleOrDefault(); if (attribute == null && isRequired) { throw new ArgumentException( string.Format( CultureInfo.InvariantCulture, “The {0} attribute must be defined on member {1}”, typeof(T).Name, member.Name)); } return … Read more