/// <summary> /// Gets a <see cref="DisplayAttribute"/> for enum field.. /// </summary> /// <param name="enumObj">An enum field.</param> /// <returns>The attribute or null.</returns> public static DisplayAttribute GetDisplayAttribute(object enumObj) { return(AttributeUtil.GetAttributeFromEnum <DisplayAttribute>(enumObj)); }