Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ HashSet() [6/7]

System.Collections.Generic.HashSet< T >.HashSet ( int capacity,
IEqualityComparer< T >? comparer )
inline

Definition at line 177 of file HashSet.cs.

178 : this(comparer)
179 {
180 if (capacity < 0)
181 {
182 ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.capacity);
183 }
184 if (capacity > 0)
185 {
187 }
188 }

References System.capacity, System.Collections.Generic.HashSet< T >.Initialize(), and System.ThrowHelper.ThrowArgumentOutOfRangeException().