Ejemplo n.º 1
0
 public static bool AreEqual(ScopedDictionary <ParameterExpression, ParameterExpression> parameterScope, Expression a, Expression b, Func <object, object, bool> fnCompare)
 {
     return(new ExpressionComparer(parameterScope, fnCompare).Compare(a, b));
 }
Ejemplo n.º 2
0
 public ExpressionComparer(ScopedDictionary <ParameterExpression, ParameterExpression> parameterScope, Func <object, object, bool> fnCompare)
 {
     this.parameterScope = parameterScope;
     this.fnCompare      = fnCompare;
 }
Ejemplo n.º 3
0
 public static bool AreEqual(ScopedDictionary <ParameterExpression, ParameterExpression> parameterScope, Expression a, Expression b)
 {
     return(new ExpressionComparer(parameterScope, null).Compare(a, b));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Construct a new <see cref="ScopedDictionary{TKey, TValue}"/> given a previous dictionary.
 /// </summary>
 public ScopedDictionary(ScopedDictionary <TKey, TValue> previous)
 {
     this.previous = previous;
     this.map      = new Dictionary <TKey, TValue>();
 }