SortedSetExtensions.ForEach<T>

Extension Method in SortedSetExtensions

Declaration

public static void ForEach<T>(this SortedSet<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.