Browse Source

Fix #2403: Implement support for NotifyCollectionChangedAction.Replace

pull/2412/head
Daniel Grunwald 4 years ago
parent
commit
163eb71886
  1. 3
      ILSpy/TreeNodes/AssemblyListTreeNode.cs

3
ILSpy/TreeNodes/AssemblyListTreeNode.cs

@ -65,6 +65,9 @@ namespace ICSharpCode.ILSpy.TreeNodes @@ -65,6 +65,9 @@ namespace ICSharpCode.ILSpy.TreeNodes
this.Children.RemoveRange(e.OldStartingIndex, e.OldItems.Count);
break;
case NotifyCollectionChangedAction.Replace:
this.Children.RemoveRange(e.OldStartingIndex, e.OldItems.Count);
this.Children.InsertRange(e.NewStartingIndex, e.NewItems.Cast<LoadedAssembly>().Select(a => new AssemblyTreeNode(a)));
break;
case NotifyCollectionChangedAction.Move:
throw new NotImplementedException();
case NotifyCollectionChangedAction.Reset:

Loading…
Cancel
Save