When you use the NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, object)
constructor, the changedItem
will either be in the NewItems
collection (if you specify NotifyCollectionChangedAction.Add
) or the OldItems
collection (if you specify NotifyCollectionChangedAction.Remove
).
If you specify NotifyCollectionChangedAction.Reset
, the changedItem
parameter must be null
, otherwise you'll get an ArgumentException
.
If you specify any other NotifyCollectionChangedAction
value, you'll also get an ArgumentException
.