System.Linq.Expressions.UnaryExpression.Update C# (CSharp) Метод

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 ( Expression operand ) : UnaryExpression
operand Expression The property of the result.
Результат UnaryExpression
        public UnaryExpression Update(Expression operand)
        {
            if (operand == Operand)
            {
                return this;
            }
            return Expression.MakeUnary(NodeType, operand, Type, Method);
        }
    }

Usage Example

Пример #1
0
        private Expression VisitUnaryExtracted(UnaryExpression node)
        {
            var visited = Visit(node.Operand);
            var updated = node.Update(visited);

            return(ValidateUnary(node, updated));
        }
All Usage Examples Of System.Linq.Expressions.UnaryExpression::Update