update values in dictionary c# code example
Example 1: dictionary update c#
myDictionary[myKey] = myNewValue;
Example 2: how to change all values in dictionary c#
dict = dict.ToDictionary(kvp => kvp.Key, kvp => kvp.Value.Select(v => v.Nr));
myDictionary[myKey] = myNewValue;
dict = dict.ToDictionary(kvp => kvp.Key, kvp => kvp.Value.Select(v => v.Nr));