NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Dictionary Constructor ()

Creates a new Dictionary with the default initial capacity and the default maximum load factor.

[Visual Basic]
Overloads Public Sub New()
[C#]
public Dictionary();
[C++]
public: Dictionary();
[JScript]
public function Dictionary();

Remarks

A dictionary's capacity is the number of key-and-value pairs it can contain. The default initial capacity is zero. Capacity is increased as the number of buckets is increased based on the load factor.

The maximum load factor is the maximum ratio of entries to buckets. A smaller load factor means faster lookup at the cost of increased memory consumption. The default maximum load factor is 1.0, which is the best balance between speed and size.

When the actual load factor reaches the maximum load factor, the number of buckets is automatically increased to the smallest prime number that is larger than twice the current number of buckets.

See Also

Dictionary Class | Dictionary Members | System.Collections Namespace | Dictionary Constructor Overload List