internal static string GetDisplayName(PropertyDescriptor propDesc)
 {
     roxority.Shared.Design.DisplayNameAttribute displayNameAttribute = GetDisplayNameAttribute(propDesc);
     if (displayNameAttribute != null)
     {
         return(displayNameAttribute.DisplayName);
     }
     return(propDesc.DisplayName);
 }
 internal static roxority.Shared.Design.DisplayNameAttribute GetDisplayNameAttribute(PropertyDescriptor propDesc)
 {
     roxority.Shared.Design.DisplayNameAttribute attribute = null;
     foreach (Attribute attribute2 in propDesc.Attributes)
     {
         attribute = attribute2 as roxority.Shared.Design.DisplayNameAttribute;
         if (attribute != null)
         {
             return(attribute);
         }
     }
     return(attribute);
 }
 internal static string GetDisplayName(MemberInfo memberInfo)
 {
     roxority.Shared.Design.DisplayNameAttribute attribute = null;
     foreach (Attribute attribute2 in memberInfo.GetCustomAttributes(true))
     {
         attribute = attribute2 as roxority.Shared.Design.DisplayNameAttribute;
         if (attribute != null)
         {
             break;
         }
     }
     if (attribute != null)
     {
         return(attribute.DisplayName);
     }
     return(memberInfo.Name);
 }