Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Definition
Namespace: Microsoft.CommandPalette.Extensions.Toolkit
The InPlaceUpdateList<T> method updates the contents of an existing list in place with new contents. This is useful for modifying a list without creating a new instance, which can be more efficient in terms of memory and performance.
Parameters
original IList<T>
The original list to be updated. This list will be modified in place.
newContents IEnumerable<T>
The new contents to be added to the original list. This can be any collection of items that implement the IEnumerable<T> interface.
Windows developer