Example #1
0
 public void AddFieldValuePair(string fieldName, UpdateValueSet updateValue)
 {
     if (FieldValuePairs.ContainsKey(fieldName))
     {
         throw new Exception(string.Format("Field with name '{0}' already exists.", fieldName));
     }
     else
     {
         FieldValuePairs.Add(fieldName, updateValue);
     }
 }
Example #2
0
        public void AddField(string Field, string OldValue, string NewValue)
        {
            if (FieldValuePairs.ContainsKey(Field))
            {
                throw new Exception("Field already exists.");
            }

            UpdateValueSet valueSet = new UpdateValueSet(OldValue, NewValue);

            FieldValuePairs.Add(Field, valueSet);
        }