Exemplo n.º 1
0
        internal void RecordModelChange(string property, object oldValue, object newValue)
        {
            if (property == null)
            {
                return;
            }

            OldNewPair onp;
            if (_properties.TryGetValue(property, out onp))
            {
                onp.NewValue = newValue;
            }
            else
            {
                onp = new OldNewPair(oldValue, newValue);
                _properties[property] = onp;
            }
        }
Exemplo n.º 2
0
        internal void RecordModelChange(string property, object oldValue, object newValue)
        {
            if (property == null)
            {
                return;
            }

            OldNewPair onp;

            if (_properties.TryGetValue(property, out onp))
            {
                onp.NewValue = newValue;
            }
            else
            {
                onp = new OldNewPair(oldValue, newValue);
                _properties[property] = onp;
            }
        }