Cleared Method
Cleared(Action<IHMap<TKey, TValue>, MapClearedEventArgs>)
Adds an handler which runs when the map is cleared.
Declaration
public MapEventHandlers<TKey, TValue> Cleared(Action<IHMap<TKey, TValue>, MapClearedEventArgs> handler)
Parameters
Action<IHMap<TKey, TValue>, MapClearedEventArgs> | handler | The handler. |
Returns
MapEventHandlers<TKey, TValue> | The handlers. |
Cleared(Func<IHMap<TKey, TValue>, MapClearedEventArgs, ValueTask>)
Adds an handler which runs when the map is cleared.
Declaration
public MapEventHandlers<TKey, TValue> Cleared(Func<IHMap<TKey, TValue>, MapClearedEventArgs, ValueTask> handler)
Parameters
Func<IHMap<TKey, TValue>, MapClearedEventArgs, ValueTask> | handler | The handler. |
Returns
MapEventHandlers<TKey, TValue> | The handlers. |