ObjectPool or similar for .NET already in a library?

前端 未结 5 1987
余生分开走
余生分开走 2021-01-30 18:38

I don\'t want to write my own because i\'m afraid i might miss something and/or rip off other people\'s work, so is there an ObjectPool (or similar) class existing in a library

5条回答
  •  无人共我
    2021-01-30 19:19

    Sounds like you need a Factory pattern with caching.

    You can try use .net reflector to look at the ThreadPool implementation.

提交回复
热议问题