|
// if the key exists in the current state, update the Value |
// if the key exists in the current state, update the Value
bool exists = false;
foreach (KeyValuePair<string,object> s in state) {
if (s.Equals(change)) { // <-- problem?
exists = true;
break;
}
}
am I missing something? This appears to be comparing whole KVPs, not just the keys.
if (s.Key.Equals(change.Key)) {
appears to work.