Fixed issue where constructor overloads killed me

This commit is contained in:
Westin Miller
2017-10-27 20:10:19 -07:00
parent 6f5142393b
commit 473637ceaf

View File

@@ -102,8 +102,8 @@ namespace Torch.Collections
MarkSnapshotsDirty();
OnPropertyChanged(nameof(Count));
OnCollectionChanged(oldIndex != null
? new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, item, oldIndex)
OnCollectionChanged(oldIndex.HasValue
? new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, item, oldIndex.Value)
: new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, item));
return true;
}