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 (IDictionary)

Copies the entries in the specified dictionary into a new Dictionary.

[Visual Basic]
Overloads Public Sub New( _
   ByVal d As IDictionary _
)
[C#]
public Dictionary(
   IDictionary d
);
[C++]
public: Dictionary(
   IDictionary* d
);
[JScript]
public function Dictionary(
   d : IDictionary
);

Parameters

d
The IDictionary to copy into a new Dictionary.

Exceptions

Exception Type Condition
ArgumentNullException d is a null reference (in Visual Basic Nothing).

Remarks

The initial capacity is set to the number of entries in the source dictionary. 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. A maximum load factor of 1.0 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 | IDictionary