Table of Contents
Extensions for HashSets
public static class HashSetExt
Inheritance System.Object HashSetExt
Enumerates a HashSet without throwing if items are added mid-iteration.
Yields each item exactly once (items added while iterating will be yielded in a later pass).
Stops when a pass finds no unseen items.
public static System.Collections.Generic.IEnumerable<T> EnumerateUntilStable<T>(this System.Collections.Generic.HashSet<T> set);
T
set
System.Collections.Generic.HashSet<T>