Click or drag to resize

RankedDictionaryTKey, TValue Constructor

Initializes a new dictionary instance using the default key comparer.

Namespace:  Kaos.Collections
Assembly:  KaosCollections (in KaosCollections.dll) Version: 4.2.0.0
Syntax
C#
public RankedDictionary()
Examples
The below snippet is part of a larger example of the RankedDictionaryTKey, TValueclass.
C#
// Instantiate with four ISO 3166-1 country codes:
var cc = new RankedDictionary<string,string>
{
  { "TO", "Tonga" },
  { "DD", "German Democratic Republic" },
  { "CH", "Switzerland" },
  { "RU", "Burundi" }
};
See Also