/// <summary> /// 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. /// </summary> /// <param name="left">The <see cref="Left" /> property of the result.</param> /// <param name="right">The <see cref="Right" /> property of the result.</param> /// <returns>This expression if no children changed, or an expression with the updated children.</returns> public RangeCSharpExpression Update(Expression left, Expression right) { if (left == this.Left || Right == this.Right) { return(this); } return(CSharpExpression.Range(left, right, Method, Type)); }