예제 #1
0
        public static void TryGetDecoratorDrawer([NotNull] IDrawerProvider drawerProvider, [NotNull] LinkedMemberInfo memberInfo, ref List <IDrawer> addResultToEndOfArray, IParentDrawer parent)
        {
            var propertyAttributes = memberInfo.GetAttributes <PropertyAttribute>();

            for (int n = 0, count = propertyAttributes.Length; n < count; n++)
            {
                var propertyAttribute = propertyAttributes[n];
                IDecoratorDrawerDrawer add;
                if (drawerProvider.TryGetForDecoratorDrawer(propertyAttribute, propertyAttribute.GetType(), parent, memberInfo, out add))
                {
                    addResultToEndOfArray.Add(add);
                }
            }
        }
예제 #2
0
 /// <inheritdoc/>
 public virtual bool TryGetForDecoratorDrawer([NotNull] PropertyAttribute fieldAttribute, [NotNull] Type propertyAttributeType, IParentDrawer parent, LinkedMemberInfo attributeTarget, [CanBeNull] out IDecoratorDrawerDrawer result)
 {
     return(wrappedProvider.TryGetForDecoratorDrawer(fieldAttribute, propertyAttributeType, parent, attributeTarget, out result));
 }