Esempio n. 1
0
        /// <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="object">The <see cref="Object" /> property of the result. </param>
        /// <param name="handler">The <see cref="Handler" /> property of the result.</param>
        /// <returns>This expression if no children changed, or an expression with the updated children.</returns>
        public EventAssignCSharpExpression Update(Expression @object, Expression handler)
        {
            if (@object == Object && handler == Handler)
            {
                return(this);
            }

            return(CSharpExpression.MakeEventAssign(CSharpNodeType, @object, Event, handler));
        }