internal static bool ShouldHideMember(MemberDescriptor info, Attribute attribute) {
if (info == null || attribute == null) {
return true;
}
Attribute infoAttribute = info.Attributes[attribute.GetType()];
if (infoAttribute == null)
return !attribute.IsDefaultAttribute();
else {
return !(attribute.Match(infoAttribute));
}
}