System.ComponentModel.DebugTypeDescriptor.ComponentEntry.ShouldHideMember C# (CSharp) Method

ShouldHideMember() static private method

static private ShouldHideMember ( MemberDescriptor info, Attribute attribute ) : bool
info MemberDescriptor
attribute System.Attribute
return bool
            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));
                }
            }