Ejemplo n.º 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);
        }
Ejemplo n.º 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;
     }
 }
Ejemplo n.º 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));
 }