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

◆ Create< T >() [3/8]

static ImmutableArray< T > System.Collections.Immutable.ImmutableArray< T >.Create< T > ( params T?[] items)
inlinestatic

Definition at line 62 of file ImmutableArray.cs.

63 {
64 if (items == null || items.Length == 0)
65 {
66 return ImmutableArray<T>.Empty;
67 }
68 T[] array = new T[items.Length];
69 Array.Copy(items, array, items.Length);
70 return new ImmutableArray<T>(array);
71 }
static unsafe void Copy(Array sourceArray, Array destinationArray, int length)
Definition Array.cs:624

References System.Collections.Immutable.ImmutableArray< T >.array, and System.Array.Copy().