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

◆ Concat< T >()

static string System.String.Concat< T > ( IEnumerable< T > values)
inlinestatic

Definition at line 1631 of file String.cs.

1632 {
1633 if (values == null)
1634 {
1635 throw new ArgumentNullException("values");
1636 }
1637 if (typeof(T) == typeof(char))
1638 {
1640 {
1641 if (!enumerator.MoveNext())
1642 {
1643 return Empty;
1644 }
1645 char current = enumerator.Current;
1646 if (!enumerator.MoveNext())
1647 {
1648 return CreateFromChar(current);
1649 }
1652 valueStringBuilder.Append(current);
1653 do
1654 {
1655 current = enumerator.Current;
1656 valueStringBuilder.Append(current);
1657 }
1658 while (enumerator.MoveNext());
1659 return valueStringBuilder.ToString();
1660 }
1661 }
1663 if (!enumerator2.MoveNext())
1664 {
1665 return Empty;
1666 }
1667 string text = enumerator2.Current?.ToString();
1668 if (!enumerator2.MoveNext())
1669 {
1670 return text ?? Empty;
1671 }
1674 valueStringBuilder2.Append(text);
1675 do
1676 {
1677 T current2 = enumerator2.Current;
1678 if (current2 != null)
1679 {
1680 valueStringBuilder2.Append(current2.ToString());
1681 }
1682 }
1683 while (enumerator2.MoveNext());
1684 return valueStringBuilder2.ToString();
1685 }
CharEnumerator GetEnumerator()
Definition String.cs:1396
static readonly string Empty
Definition String.cs:29
static string CreateFromChar(char c)
Definition String.cs:1371

References System.String.CreateFromChar(), System.String.Empty, System.Collections.Generic.Dictionary< TKey, TValue >.GetEnumerator(), System.String.GetEnumerator(), System.text, and System.values.