-1

I wanted to ask if it's possible to change List items to one string?

List<string> example = new List<string>();
example.Add("1");
example.Add("2");
example.Add("3");
string text = "123";
DiplomacyNotWar
  • 31,605
  • 6
  • 57
  • 75
Yuri
  • 31
  • 3

1 Answers1

4

string.Join is for you

string s = string.Join("", example )
Antoine V
  • 6,756
  • 2
  • 9
  • 30