private string GetDescription(PropertyDescriptor pd) { WebDescriptionAttribute attribute = (WebDescriptionAttribute)pd.Attributes[typeof(WebDescriptionAttribute)]; if (attribute != null) { return(attribute.Description); } return(null); }
public override bool Equals(object obj) { if (obj == this) { return(true); } WebDescriptionAttribute attribute = obj as WebDescriptionAttribute; return((attribute != null) && (attribute.Description == this.Description)); }
public override bool Equals(object obj) { if (obj == this) { return(true); } WebDescriptionAttribute other = obj as WebDescriptionAttribute; return((other != null) && other.Description == Description); }