예제 #1
0
        protected static PooledDictionary <int, int> CreatePooled(int size)
        {
            Random rand = new Random(RAND_SEED);
            var    dict = new PooledDictionary <int, int>();

            while (dict.Count < size)
            {
                int key = rand.Next(500000, int.MaxValue);
                dict.TryAdd(key, 0);
            }
            return(dict);
        }