private string GetDescription(PropertyDescriptor pd)
        {
            WebDescriptionAttribute attribute = (WebDescriptionAttribute)pd.Attributes[typeof(WebDescriptionAttribute)];

            if (attribute != null)
            {
                return(attribute.Description);
            }
            return(null);
        }
Ejemplo n.º 2
0
        public override bool Equals(object obj)
        {
            if (obj == this)
            {
                return(true);
            }
            WebDescriptionAttribute attribute = obj as WebDescriptionAttribute;

            return((attribute != null) && (attribute.Description == this.Description));
        }
Ejemplo n.º 3
0
        public override bool Equals(object obj)
        {
            if (obj == this)
            {
                return(true);
            }

            WebDescriptionAttribute other = obj as WebDescriptionAttribute;

            return((other != null) && other.Description == Description);
        }