public bool TryGetValue <T1, T2>(out IExpresionList <T1, T2> value) { IExpresionList outVaue; var returnValue = innerDictionary.TryGetValue(Tuple.Create(typeof(T1), typeof(T2)), out outVaue); if (returnValue) { value = (IExpresionList <T1, T2>)outVaue; } else { value = null; } return(returnValue); }
/// <summary> /// Builds this instance. /// </summary> /// <returns></returns> public Expression <Func <T1, T2, bool> > Build <T1, T2>(IExpresionList <T1, T2> expParts, IRelationalExpressionBuilder builder) { return(expParts.Select(v => v(builder)).Aggregate((a, b) => a.OrElse(b))); }
public bool TryGetValue(Tuple <Type, Type> key, out IExpresionList value) { return(innerDictionary.TryRemove(key, out value)); }
public void Add(Tuple <Type, Type> key, IExpresionList value) { innerDictionary.TryAdd(key, value); }
public void Add <T1, T2>(IExpresionList value) { innerDictionary.TryAdd(Tuple.Create(typeof(T1), typeof(T2)), value); }
public void Add <T1, T2>(IExpresionList value) { dictionary.Add <T1, T2>(value); }