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

◆ Stack() [3/3]

System.Collections.Stack.Stack ( ICollection col)
inline

Definition at line 246 of file Stack.cs.

247 : this(col?.Count ?? 32)
248 {
249 if (col == null)
250 {
251 throw new ArgumentNullException("col");
252 }
253 IEnumerator enumerator = col.GetEnumerator();
254 while (enumerator.MoveNext())
255 {
256 Push(enumerator.Current);
257 }
258 }
virtual void Push(object? obj)
Definition Stack.cs:357

References System.Collections.IEnumerator.Current, System.Collections.IEnumerable.GetEnumerator(), System.Collections.IEnumerator.MoveNext(), and System.Collections.Stack.Push().