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

◆ Concat() [7/12]

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

Definition at line 1784 of file String.cs.

1785 {
1786 int num = checked(str0.Length + str1.Length);
1787 if (num == 0)
1788 {
1789 return Empty;
1790 }
1791 string text = FastAllocateString(num);
1792 Span<char> destination = new Span<char>(ref text._firstChar, text.Length);
1794 str1.CopyTo(destination.Slice(str0.Length));
1795 return text;
1796 }
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.