コード例 #1
0
        private PooledObjectStatus <T> CreateNewPooledObject()
        {
            T newObject = PoolableObjectFactory.CreateNew();
            PooledObjectStatus <T> pooled = new PooledObjectStatus <T>(newObject);

            FullStack.Add(pooled);
            Console.WriteLine("New PoolableObject{UUID=" + pooled.Uuid.ToString() + ", poolSize=" + FullStack.Count + "}");
            return(pooled);
        }