/// <summary>Initializes a new instance of the <see cref="ItemAddingEventArgs"/> class. /// </summary> /// <param name="newItem">The new element to add into a specific <see cref="IdentifierNameableDictionary<T>"/> instance.</param> /// <param name="oldItem">The element of a specific <see cref="IdentifierNameableDictionary<T>"/> object which will /// be replaced by <paramref name="newItem"/>; or <c>null</c> if no such element exists.</param> internal ItemAddingEventArgs(IIdentifierNameable newItem, IIdentifierNameable oldItem) { NewItem = newItem; OldItem = oldItem; Cancel = false; }
/// <summary>Initializes a new instance of the <see cref="ItemAddedEventArgs"/> class. /// </summary> /// <param name="newItem">The new element that has been added into some <see cref="IdentifierNameableDictionary<T>"/> instance.</param> /// <param name="state">The state.</param> internal ItemAddedEventArgs(IIdentifierNameable newItem, ItemAddedState state) { NewItem = newItem; State = state; }