/// <summary> /// 获取对象池中对象数量 /// </summary> /// <param name="key"></param> /// <returns></returns> public static int GetSize <T>(PoolKey key) { ObjectPools <T> pool = GetPools <T>(key); if (pool != null) { return(pool.GetSize()); } return(0); }