예제 #1
0
 private void DictionaryAdd(string key, ADPropertyValueCollection value)
 {
     this.OnValidate(key, value);
     this.OnInsert(key, value);
     this.InnerDictionary.Add(key, value);
     try
     {
         this.OnInsertComplete(key, value);
     }
     catch
     {
         this.InnerDictionary.Remove(key);
         DebugLogger.LogWarning("ADPropertyCollection", string.Concat("Add: OnInsertComplete failed for key ", key, ". Value was ", value.ToString()));
         throw;
     }
 }
예제 #2
0
		private void DictionaryAdd(string key, ADPropertyValueCollection value)
		{
			this.OnValidate(key, value);
			this.OnInsert(key, value);
			this.InnerDictionary.Add(key, value);
			try
			{
				this.OnInsertComplete(key, value);
			}
			catch
			{
				this.InnerDictionary.Remove(key);
				DebugLogger.LogWarning("ADPropertyCollection", string.Concat("Add: OnInsertComplete failed for key ", key, ". Value was ", value.ToString()));
				throw;
			}
		}