# GenericPool **Repository Path**: maoyinhang/generic-pool ## Basic Information - **Project Name**: GenericPool - **Description**: 轻量的C#泛型对象池 - **Primary Language**: C# - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-06-06 - **Last Updated**: 2025-06-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # GenericPool #### 介绍 轻量的C#泛型对象池 #### 使用说明 1. Collection支持 ``` Dictionary dict = CollectionPool, string, int>.Acquire(); CollectionPool, string, int>.Release(dict); List list = CollectionPool, string>.Acquire() CollectionPool, string>.Release(list) ``` 2. 自定义类型 ``` public class TestClass:IReference { public void Clear() { } } TestClass testClass = GenericReferencePool.Acquire() GenericReferencePool.Release(testClass) ```