HashSetExtensions.ForEach<T>
Extension Method in HashSetExtensions
Declaration
public static void ForEach<T>(this HashSet<T> set, Action<T> action)
Description
Invokes an action on each element in the set. The element is passed as a parameter.
Type Parameters
T | The type of the elements in the set. |
Parameters
set | The set to iterate over. |
action | The action to invoke on each element. |