Beispiel #1
0
        public static Dictionary <TKey, TValue> AllocateAndClear <TKey, TValue>(
            this SimplePool <Dictionary <TKey, TValue> > pool)
        {
            var map = pool.Allocate();

            map.Clear();

            return(map);
        }