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

◆ Concat() [8/12]

static string System.String.Concat ( ReadOnlySpan< char > str0,
ReadOnlySpan< char > str1,
ReadOnlySpan< char > str2 )
inlinestatic

Definition at line 1798 of file String.cs.

1799 {
1800 int num = checked(str0.Length + str1.Length + str2.Length);
1801 if (num == 0)
1802 {
1803 return Empty;
1804 }
1805 string text = FastAllocateString(num);
1806 Span<char> destination = new Span<char>(ref text._firstChar, text.Length);
1808 destination = destination.Slice(str0.Length);
1810 destination = destination.Slice(str1.Length);
1812 return text;
1813 }
void CopyTo(KeyValuePair< TKey, TValue >[] array, int index)
static readonly string Empty
Definition String.cs:29
static string FastAllocateString(int length)

References System.Collections.Generic.Dictionary< TKey, TValue >.CopyTo(), System.destination, System.String.Empty, System.String.FastAllocateString(), and System.text.