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

TThe type of the elements in the set.

Parameters

setThe set to iterate over.
actionThe action to invoke on each element.