![]() |
VOOZH | about |
public System.Collections.Generic.Dictionary<TKey, TValue>.KeyCollection Keys { get; }Return Value : It returns a collection containing the keys in the Dictionary. Below are the programs to illustrate the use of above-discussed property: Example 1:
Total key/value pairs in myDict are : 6 Key = Australia Key = Belgium Key = Netherlands Key = China Key = Russia Key = India
Total key/value pairs in myDict are : 4 Key = 9 Key = 3 Key = 4 Key = 1