Skip to Main Content

BTD_Mod_Helper​.Extensions​.HashSetExt


BloonsTD6 Mod Helper

BTD_Mod_Helper.Extensions

HashSetExt Class

Extensions for HashSets

public static class HashSetExt

Inheritance System.Object  HashSetExt

Methods

HashSetExt.EnumerateUntilStable(this HashSet) Method

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);

Type parameters

T

Parameters

set System.Collections.Generic.HashSet<T>

Returns

System.Collections.Generic.IEnumerable<T>

To learn how to download BTD Mod Helper and install mods, click here