Skip to content

Applies to

net11.0, net10.0, net47, net471, net472, net48, net481

void Edit(Action<IDictionary<TKey, TValue>> editAction)

Summary: Performs a batch edit operation on the dictionary, ensuring only a single change notification is emitted.

Parameters

NameTypeDescription
editActionAction> (opens in a new tab)An action that receives the dictionary interface to perform modifications.

Remarks

Use this method when making multiple modifications to the dictionary to improve efficiency by reducing the number of change notifications.