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); }
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; } }
public static bool CacheOrderDrawerForField(this BaseMightyMember mightyMember, MemberInfo memberInfo, IEnumerable <BaseMightyAttribute> wrappedAttributes) { return(mightyMember.CacheSingleAttribute <OrderAttribute>(memberInfo.GetCustomAttributes <OrderAttribute>(true)) || mightyMember.CacheSingleAttribute <OrderAttribute>(wrappedAttributes)); }