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

◆ JoinCore() [1/3]

static string System.String.JoinCore ( ReadOnlySpan< char > separator,
object[] values )
inlinestaticprivate

Definition at line 2081 of file String.cs.

2082 {
2083 if (values == null)
2084 {
2085 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.values);
2086 }
2087 if (values.Length == 0)
2088 {
2089 return Empty;
2090 }
2091 string text = values[0]?.ToString();
2092 if (values.Length == 1)
2093 {
2094 return text ?? Empty;
2095 }
2098 valueStringBuilder.Append(text);
2099 for (int i = 1; i < values.Length; i++)
2100 {
2102 object obj = values[i];
2103 if (obj != null)
2104 {
2105 valueStringBuilder.Append(obj.ToString());
2106 }
2107 }
2108 return valueStringBuilder.ToString();
2109 }
static readonly string Empty
Definition String.cs:29

References System.String.Empty, System.obj, System.text, System.ThrowHelper.ThrowArgumentNullException(), and System.values.