Is it possible to set capacity for csharp string intern pool?

前端 未结 0 575
死守一世寂寞
死守一世寂寞 2021-01-17 11:06

Normally, when init a collection such as Dictionary, if we know how many key-value pairs ahead, we could use

var dict=new Dictionary<>(capacity);


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题