Vandrovnik 214 Posted March 6, 2020 Hello, I wanted to call tDictionary<>.SetCapacity prior to adding items to it, so that there is no need to re-hash items. Unfortunatelly, tDictionary<>.SetCapacity is private member. Why? Is it an intention, or a bug? Probably there is a way how to access even a private method...? Kind regards, Karel Share this post Link to post
David Heffernan 2345 Posted March 6, 2020 Isn't this something you set when you create the dictionary? Does the spring4d implementation offer more functionality? 1 Share this post Link to post
Vandrovnik 214 Posted March 6, 2020 Thank you, I have never noticed that I can pass the capacity to .Create... Share this post Link to post