Exemple #1
0
 public static LazyExpression operator !=(Expression L, Expression R)
 {
     if ((L is null) || (R is null))
     {
         return(new LazyExpression(Constant.New(!ReferenceEquals(L, R))));
     }
     return(new LazyExpression(Binary.NotEqual(L, R)));
 }
 public static LazyExpression operator !=(LazyExpression L, LazyExpression R)
 {
     if (ReferenceEquals(L.value, null) || ReferenceEquals(R.value, null))
     {
         return(new LazyExpression(Constant.New(!ReferenceEquals(L.value, R.value))));
     }
     return(new LazyExpression(Binary.NotEqual(L.value, R.value)));
 }
Exemple #3
0
 protected override object VisitProduct(Product M)
 {
     foreach (Expression i in M.Terms)
     {
         conditions.Push(Binary.NotEqual(i, 0));
         equal.Push(equal.Peek() / i);
         Visit(Product.New(M.Terms.ExceptUnique(i)));
         equal.Pop();
         conditions.Pop();
     }
     return(null);
 }