set value of all keys c# code example
Example 1: c# dictionaries
IDictionary<int, string> dict = new Dictionary<int, string>();
//or
Dictionary<int, string> dict = new Dictionary<int, string>();
Example 2: how to change all values in dictionary c#
dict = dict.ToDictionary(kvp => kvp.Key, kvp => kvp.Value.Select(v => v.Nr));