Ejemplo n.º 1
0
        static private CustomAttribute GetCustomAttributeList(MemberInfo member, Type caType, CustomAttribute caItem, int level)
        {
            MemberTypes memberType = member.MemberType;
            int         token      = CustomAttribute.GetMemberToken(member, memberType);
            IntPtr      module     = CustomAttribute.GetMemberModule(member, memberType);

            return(CustomAttribute.GetCustomAttributeListCheckType(token, module, caType, caItem, level));
        }
Ejemplo n.º 2
0
        static private bool IsDefined(MemberInfo member, Type caType, CustomAttribute caItem)
        {
            MemberTypes memberType = member.MemberType;
            int         token      = CustomAttribute.GetMemberToken(member, memberType);
            IntPtr      module     = CustomAttribute.GetMemberModule(member, memberType);

            return(CustomAttribute.IsCADefinedCheckType(caType, module, token));
        }