示例#1
0
 public static void Cache(BaseEvent obj)
 {
     obj.Clear();
     if (_pool.Count < _poolMaxSize)
     {
         _pool.Enqueue(obj);
     }
 }