foreach(KeyValuePair<string, string> entry in myDictionary)
{
// do something with entry.Value or entry.Key
}
More Related Contents:
- From Dictionary to List
- Getting same numbers from random number generator even though it’s out of the loop. Why? [closed]
- How to enumerate an enum
- How to remove elements from a generic list while iterating over it?
- How do you sort a dictionary by value?
- Multi-key dictionary in c#? [duplicate]
- How can I loop through a C++ map of maps?
- Tuples( or arrays ) as Dictionary keys in C#
- Mapping object to dictionary and vice versa
- C# Store functions in a Dictionary
- foreach vs someList.ForEach(){}
- How can I deserialize JSON with C#?
- C# JSON Serialization of Dictionary into {key:value, …} instead of {key:key, value:value, …}
- How do I loop through a date range?
- Check if list contains any of another list
- Newtonsoft Json Deserialize Dictionary as Key/Value list from DataContractJsonSerializer
- Does C# have a way of giving me an immutable Dictionary?
- Convert list to dictionary using linq and not worrying about duplicates
- How to bind Dictionary to ListBox in WinForms
- Throw a NullReferenceException while calling the set_item method of a Dictionary object in a multi-threading scenario
- Recreating a Dictionary from an IEnumerable
- How is the c#/.net 3.5 dictionary implemented?
- C# Count Vowels
- C# Convert List to Dictionary
- Accessing a Dictionary.Keys Key through a numeric index
- The given key was not present in the dictionary. Which key?
- Best way to change dictionary key
- C# anonymous object with properties from dictionary
- Get the last element in a dictionary?
- Map two lists into a dictionary in C#