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

◆ Insert() [13/20]

unsafe StringBuilder System.Text.StringBuilder.Insert ( int index,
ReadOnlySpan< char > value )
inline

Definition at line 1482 of file StringBuilder.cs.

1483 {
1484 if ((uint)index > (uint)Length)
1485 {
1486 throw new ArgumentOutOfRangeException("index", SR.ArgumentOutOfRange_Index);
1487 }
1488 if (value.Length > 0)
1489 {
1490 fixed (char* value2 = &MemoryMarshal.GetReference(value))
1491 {
1492 Insert(index, value2, value.Length);
1493 }
1494 }
1495 return this;
1496 }

References System.SR.ArgumentOutOfRange_Index, System.Runtime.Serialization.Dictionary, System.index, System.Insert, System.Text.StringBuilder.Length, and System.value.