internal UndoableUnitBlockTransaction(ObservableCollectionBase <T> collectionBase) { _ = Requires.NotNull(collectionBase); this.collectionBase = collectionBase; AddRevertStep( state => { ((ObservableCollectionBase <T>)state).FailExplicitUndoBlockTransaction(); }, collectionBase); StateChanges = new CompositeStateChange(new List <StateChangeBase>()); }
public CollectionDebugView(ObservableCollectionBase <T> collection) { this.collection = collection ?? throw new ArgumentNullException(nameof(collection)); }
public CollectionDebugView(ObservableCollectionBase <T> collection) => Requires.NotNull(out this.collection, collection);