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

◆ Concat() [10/12]

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

Definition at line 1714 of file String.cs.

1715 {
1716 if (IsNullOrEmpty(str0))
1717 {
1718 if (IsNullOrEmpty(str1))
1719 {
1720 return Empty;
1721 }
1722 return str1;
1723 }
1724 if (IsNullOrEmpty(str1))
1725 {
1726 return str0;
1727 }
1728 int length = str0.Length;
1729 string text = FastAllocateString(length + str1.Length);
1732 return text;
1733 }
static readonly string Empty
Definition String.cs:29
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.Empty, System.String.FastAllocateString(), System.String.FillStringChecked(), System.String.IsNullOrEmpty(), System.length, and System.text.