public ScopedDictionary(ScopedDictionary <TKey, TValue> previous, IEnumerable <KeyValuePair <TKey, TValue> > pairs) : this(previous) { foreach (KeyValuePair <TKey, TValue> p in pairs) { map.Add(p.Key, p.Value); } }
public ScopedDictionary(ScopedDictionary <TKey, TValue> previous) { this.previous = previous; map = new Dictionary <TKey, TValue>(); }
public static bool AreEqual(ScopedDictionary <ParameterExpression, ParameterExpression> parameterScope, Expression a, Expression b) { return(new ExpressionComparer(parameterScope, null).Compare(a, b)); }
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)); }
protected ExpressionComparer(ScopedDictionary <ParameterExpression, ParameterExpression> parameterScope, Func <object, object, bool> fnCompare) { this.parameterScope = parameterScope; this.fnCompare = fnCompare; }