public EntropyPoolRepository( IEntropyPool <int> intEntropyPool, IEntropyPool <float> floatEntropyPool, IEntropyPool <string> hashEntropyPool) { Pools = new List <object> { intEntropyPool, floatEntropyPool, hashEntropyPool }; }
public bool TryGetPool <T>(out IEntropyPool <T> pool) { var fetchedPool = GetPool <T>(); if (fetchedPool == null) { pool = null; return(false); } pool = fetchedPool; return(true); }