public static void Cache(BaseEvent obj) { obj.Clear(); if (_pool.Count < _poolMaxSize) { _pool.Enqueue(obj); } }