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

◆ Concat() [11/12]

static string System.String.Concat ( string? str0,
string? str1,
string? str2 )
inlinestatic

Definition at line 1735 of file String.cs.

1736 {
1737 if (IsNullOrEmpty(str0))
1738 {
1739 return str1 + str2;
1740 }
1741 if (IsNullOrEmpty(str1))
1742 {
1743 return str0 + str2;
1744 }
1745 if (IsNullOrEmpty(str2))
1746 {
1747 return str0 + str1;
1748 }
1749 int length = str0.Length + str1.Length + str2.Length;
1750 string text = FastAllocateString(length);
1752 FillStringChecked(text, str0.Length, str1);
1753 FillStringChecked(text, str0.Length + str1.Length, str2);
1754 return text;
1755 }
static void FillStringChecked(string dest, int destPos, string src)
Definition String.cs:1560
static string FastAllocateString(int length)
static bool IsNullOrEmpty([NotNullWhen(false)] string? value)
Definition String.cs:1319

References System.String.FastAllocateString(), System.String.FillStringChecked(), System.String.IsNullOrEmpty(), System.length, and System.text.