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

◆ SetItem() [1/2]

ImmutableArray< T > System.Collections.Immutable.ImmutableArray< T >.SetItem ( int index,
T item )
inline

Implements System.Collections.Immutable.IImmutableList< T >.

Definition at line 1139 of file ImmutableArray.cs.

1140 {
1142 immutableArray.ThrowNullRefIfNotInitialized();
1143 Requires.Range(index >= 0 && index < immutableArray.Length, "index");
1144 T[] array = new T[immutableArray.Length];
1146 array[index] = item;
1147 return new ImmutableArray<T>(array);
1148 }
static unsafe void Copy(Array sourceArray, Array destinationArray, int length)
Definition Array.cs:624

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