Ejemplo n.º 1
0
        /// <summary>
        /// Creates a new on-set clause for setting variables, and adds a variable to set.
        /// </summary>
        /// <param name="expression">is the assignment expression providing the new variable value</param>
        /// <returns>on-set clause</returns>
        public static OnSetClause Create(Expression expression)
        {
            var clause = new OnSetClause();

            clause.AddAssignment(expression);
            return(clause);
        }
Ejemplo n.º 2
0
 /// <summary>Creates an on-set clause for setting variable values. </summary>
 /// <param name="expression">is the assignment expression</param>
 /// <returns>on-set clause</returns>
 public static OnSetClause CreateOnSet(Expression expression)
 {
     return(OnSetClause.Create(expression));
 }