示例#1
0
        public static void CacheEnableConditionForMember(this BaseMightyMember mightyMember, MemberInfo memberInfo,
                                                         IEnumerable <BaseMightyAttribute> wrappedAttributes)
        {
            if (mightyMember.CacheSingleAttribute <BaseEnableConditionAttribute>(
                    memberInfo.GetCustomAttributes <BaseEnableConditionAttribute>(true)))
            {
                return;
            }

            mightyMember.CacheSingleAttribute <BaseEnableConditionAttribute>(wrappedAttributes);
        }
示例#2
0
 public static void CacheFoldableGrouperForField(this BaseMightyMember mightyMember, MemberInfo memberInfo,
                                                 IEnumerable <BaseMightyAttribute> wrappedAttributes)
 {
     if (!mightyMember.CacheSingleAttribute(memberInfo.GetCustomAttributes <BaseFoldGroupAttribute>(true),
                                            out BaseFoldGroupAttribute attribute) && !mightyMember.CacheSingleAttribute(wrappedAttributes, out attribute))
     {
         return;
     }
 }
示例#3
0
 public static bool CacheOrderDrawerForField(this BaseMightyMember mightyMember, MemberInfo memberInfo,
                                             IEnumerable <BaseMightyAttribute> wrappedAttributes)
 {
     return(mightyMember.CacheSingleAttribute <OrderAttribute>(memberInfo.GetCustomAttributes <OrderAttribute>(true)) ||
            mightyMember.CacheSingleAttribute <OrderAttribute>(wrappedAttributes));
 }