Fixed issue where constructor overloads killed me
This commit is contained in:
@@ -102,8 +102,8 @@ namespace Torch.Collections
|
|||||||
MarkSnapshotsDirty();
|
MarkSnapshotsDirty();
|
||||||
|
|
||||||
OnPropertyChanged(nameof(Count));
|
OnPropertyChanged(nameof(Count));
|
||||||
OnCollectionChanged(oldIndex != null
|
OnCollectionChanged(oldIndex.HasValue
|
||||||
? new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, item, oldIndex)
|
? new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, item, oldIndex.Value)
|
||||||
: new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, item));
|
: new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, item));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user