Inheritance: Operation
コード例 #1
0
        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));
        }
コード例 #2
0
        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);
        }