Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
Create< T >()
[2/3]
static
ImmutableQueue
<
T
>
System.Collections.Immutable.ImmutableQueue
<
T
>.Create<
T
>
(
params
T
[]
items
)
inline
static
Definition at line
41
of file
ImmutableQueue.cs
.
42
{
43
Requires.NotNull(items,
"items"
);
44
if
(items.Length == 0)
45
{
46
return
ImmutableQueue<T>
.Empty;
47
}
48
ImmutableStack<T>
immutableStack
=
ImmutableStack<T>
.Empty;
49
for
(
int
num = items.Length - 1; num >= 0; num--)
50
{
51
immutableStack
=
immutableStack
.Push(items[num]);
52
}
53
return
new
ImmutableQueue<T>
(
immutableStack
,
ImmutableStack<T>
.
Empty
);
54
}
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.Collections.Immutable.ImmutableQueue.Empty
static ImmutableQueue< T > Empty
Definition
ImmutableQueue.cs:218
System
Collections
Immutable
ImmutableQueue
Generated by
1.10.0