SortedDictionary<'TKey, 'TValue>.IDictionary.Keys Property
Assembly: System (in System.dll)
The following code example shows how to use the IDictionary<'TKey, 'TValue>.Keys property of the System.Collections.IDictionary interface with a SortedDictionary<'TKey, 'TValue>, to list the keys in the dictionary. The example also shows how to enumerate the key/value pairs in the dictionary; note that the enumerator for the System.Collections.IDictionary interface returns DictionaryEntry objects rather than KeyValuePair<'TKey, 'TValue> objects.
The code example is part of a larger example, including output, provided for the IDictionary.Add method.
Available since 8
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Available since 8.1