-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";
ProgrammingLlama
  • 36,677
  • 7
  • 67
  • 86
Yuri
  • 31
  • 3

1 Answers1

4

string.Join is for you

string s = string.Join("", example )
Antoine V
  • 6,998
  • 2
  • 11
  • 34