Ejemplo n.º 1
0
 private void BackupProposedValueIfNeeded(DataProperty property, Object oldValue)
 {
     if (_preproposedValuesMap == null)
     {
         _preproposedValuesMap = new BackupValuesMap();
     }
     else
     {
         if (_preproposedValuesMap.ContainsKey(property.Name))
         {
             return;
         }
     }
     _preproposedValuesMap.Add(property.Name, oldValue);
 }
Ejemplo n.º 2
0
 private void BackupOriginalValueIfNeeded(DataProperty property, Object oldValue)
 {
     if (_originalValuesMap == null)
     {
         _originalValuesMap = new BackupValuesMap();
     }
     else
     {
         if (_originalValuesMap.ContainsKey(property.Name))
         {
             return;
         }
     }
     // reference copy of complex object is deliberate - actual original values will be stored in the co itself.
     _originalValuesMap.Add(property.Name, oldValue);
 }
Ejemplo n.º 3
0
 private ReadOnlyDictionary <String, Object> HandleNull(BackupValuesMap map)
 {
     return((map ?? BackupValuesMap.Empty).ReadOnlyDictionary);
 }