August 2004 - Posts

System.Collections.Generic Dictionary Capacity, Hashing, and Collisions.
Somebody asked me a question how to set the initial capacity of System.Collections.Generic.Dictionary<K,V> if one knows that the Dictionary will contain 1000 entries. The short answer Dictionary<int,string> numbers = new Dictionary<int,string>(1000); Read More...
Page view tracker