private bool GetDidChange(Dictionary <string, StateChange> changes, StateChange change) { StateChange previous; if (!changes.TryGetValue(change.Variable, out previous)) { changes[change.Variable] = change; return(false); } return(!Equals(previous.Value, change.Value)); }
private bool GetDidChange(Dictionary<string, StateChange> changes, StateChange change) { StateChange previous; if (!changes.TryGetValue (change.Variable, out previous)) { changes[change.Variable] = change; return false; } return !Equals (previous.Value, change.Value); }