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

◆ Concat() [9/12]

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

Definition at line 1815 of file String.cs.

1816 {
1817 int num = checked(str0.Length + str1.Length + str2.Length + str3.Length);
1818 if (num == 0)
1819 {
1820 return Empty;
1821 }
1822 string text = FastAllocateString(num);
1823 Span<char> destination = new Span<char>(ref text._firstChar, text.Length);
1825 destination = destination.Slice(str0.Length);
1827 destination = destination.Slice(str1.Length);
1829 destination = destination.Slice(str2.Length);
1831 return text;
1832 }
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.