예제 #1
0
        public static MemberBinding Visit(ITreeNodeBase parent, ITreeNode<Expression> parentBlock, MemberBindingType memberBindingType, XElement configurationElement, Type parentType)
        {
            BaseMemberBinding memberBinding = null;

            switch (memberBindingType)
            {
                case MemberBindingType.ListBinding:

                    memberBinding = new ListBindingInjector(parent, parentBlock, configurationElement, parentType);
                    break;

                case MemberBindingType.MemberBinding:

                    memberBinding = new MemberMemberBindingInjector(parent, parentBlock, configurationElement, parentType);
                    break;

                case MemberBindingType.Assignment:
                default:
                    memberBinding = new MemberAssignmentInjector(parent, parentBlock, configurationElement, parentType);
                    break;
            }

            return memberBinding.Value;
        }
예제 #2
0
 public NewArrayInitInjector(ITreeNodeBase parent, ITreeNode<Expression> parentBlock, XElement configurationElement)
     : base(parent, parentBlock, configurationElement)
 {
 }
예제 #3
0
 public ListBindingInjector(ITreeNodeBase parent, ITreeNode<Expression> parentBlock, XElement configurationElement, Type parentType)
     : base(parent, parentBlock, configurationElement, parentType)
 {
 }
 public MemberAssignmentInjector(ITreeNodeBase parent, ITreeNode<Expression> parentBlock, XElement configurationElement, Type parentType)
     : base(parent, parentBlock, configurationElement, parentType)
 {
 }
예제 #5
0
 public TypeIsBinaryExpression(ITreeNodeBase parent, ITreeNode<Expression> parentBlock, XElement configurationElement)
     : base(parent, parentBlock, configurationElement)
 {
 }
예제 #6
0
 public static MemberBinding Visit(ITreeNodeBase parent, ITreeNode<Expression> parentBlock, XElement configurationElement, Type parentType)
 {
     MemberBindingType memberBindingType = BaseMemberBinding.ResolveMemberBindType(configurationElement);
     return Visit(parent, parentBlock, memberBindingType, configurationElement, parentType);
 }