public ArgLockingMemoizingContainer( IEqualityComparer <TArg> comparer, Func <TArg, TResult> func) { _cache = new Dictionary <TArg, TResult>(comparer); _locks = new LockTable <TArg>(comparer); _func = func; }
public ArgLockingMemoizationWrapper() { _cache = new Dictionary <TArg, TResult>(); _locks = new LockTable <TArg>(); }
public ArgLockingMemoizingContainer(Func <TArg, TResult> func) { _cache = new Dictionary <TArg, TResult>(); _locks = new LockTable <TArg>(); _func = func; }
public ArgLockingMemoizer(IEqualityComparer <TArg> comparer) { _cache = new Dictionary <TArg, TResult>(comparer); _locks = new LockTable <TArg>(comparer); }