QuaternaryList.ReplaceAll(IEnumerable) method¶
Defined in
Type: QuaternaryListReactiveList.Reactive.Collections
Assembly: ReactiveList.Reactive.dll
Applies to
net11.0, net10.0, net47, net471, net472, net48, net481
public void ReplaceAll(IEnumerable<T> collection)
View source (opens in a new tab)
Summary: Replaces all existing items with new items atomically, emitting a single change notification.
Parameters
| Name | Type | Description |
|---|---|---|
collection | IEnumerable | The new items to replace all existing items with. Cannot be null. |
Remarks
This operation clears all existing items and adds the new items in a single atomic operation. Only one change notification is emitted for the entire operation. All indices are updated accordingly.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException (opens in a new tab) | collection is null. |