Esempio n. 1
0
 /// <summary>
 /// Return guard1 and guard2
 /// </summary>
 /// <param name="guard1"></param>
 /// <param name="guard2"></param>
 /// <returns></returns>
 public static Expression CombineGuard(Expression guard1, Expression guard2)
 {
     if (guard1 != null && guard2 != null)
     {
         return(Expression.AND(guard1, guard2));
     }
     else if (guard1 == null)
     {
         return(guard2);
     }
     else
     {
         return(guard1);
     }
 }