Update() 공개 메소드

Creates a new expression that is like this one, but using the supplied children. If all of the children are the same, it will return this expression.
public Update ( IEnumerable bindings ) : MemberMemberBinding
bindings IEnumerable The property of the result.
리턴 MemberMemberBinding
예제 #1
0
        /// <summary>
        ///     Visits the children of the <see cref="MemberMemberBinding" />.
        /// </summary>
        /// <param name="node">The expression to visit.</param>
        /// <returns>
        ///     The modified expression, if it or any subexpression was modified;
        ///     otherwise, returns the original expression.
        /// </returns>
        protected virtual MemberMemberBinding VisitMemberMemberBinding(MemberMemberBinding node)
        {
            if (node == null)
            {
                throw new ArgumentNullException(nameof(node));
            }

            return(node.Update(Visit(node.Bindings, VisitMemberBinding)));
        }
예제 #2
0
        public MemberMemberBindingExpressionTree Visit(MemberMemberBinding node)
        {
            CheckChildrenCount(node.Bindings.Count);

            var b = ExtractChildBindings(0, node.Bindings.Count);

            var memberMemberBinding = node.Update(b);

            return(new MemberMemberBindingExpressionTree(memberMemberBinding, _children.Cast <MemberBindingExpressionTree>()));
        }
예제 #3
0
 protected virtual MemberMemberBinding VisitMemberMemberBinding(MemberMemberBinding node)
 {
     return(node.Update(Visit(node.Bindings, VisitMemberBinding)));
 }
 protected virtual MemberMemberBinding VisitMemberMemberBinding(MemberMemberBinding node)
 {
     return(node.Update(Visit <MemberBinding>(node.Bindings, new Func <MemberBinding, MemberBinding>(this.VisitMemberBinding))));
 }