EntryAdded Method
EntryAdded(Action<IHMap<TKey, TValue>, MapEntryAddedEventArgs<TKey, TValue>>)
Adds an handler which runs when a map entry is added.
Declaration
public MapEventHandlers<TKey, TValue> EntryAdded(Action<IHMap<TKey, TValue>, MapEntryAddedEventArgs<TKey, TValue>> handler)
Parameters
Action<IHMap<TKey, TValue>, MapEntryAddedEventArgs<TKey, TValue>> | handler | The handler. |
Returns
MapEventHandlers<TKey, TValue> | The handlers. |
EntryAdded(Func<IHMap<TKey, TValue>, MapEntryAddedEventArgs<TKey, TValue>, ValueTask>)
Adds an handler which runs when a map entry is added.
Declaration
public MapEventHandlers<TKey, TValue> EntryAdded(Func<IHMap<TKey, TValue>, MapEntryAddedEventArgs<TKey, TValue>, ValueTask> handler)
Parameters
Func<IHMap<TKey, TValue>, MapEntryAddedEventArgs<TKey, TValue>, ValueTask> | handler | The handler. |
Returns
MapEventHandlers<TKey, TValue> | The handlers. |