C# 잡동사니
스트링 문자열 합치기
windbear
2021. 3. 2. 13:37
반응형
List<string> DBs = new List<string>{"aa","bb","cc","1234","xyz"};
string result = string.Join("|", DBs); // 문자열을 |로 구분하여 합치기
Console.WriteLine("result=" + result);
[Reference] : WhiteAT, 「C# .NET 자료실 - string array to string (스트링 문자열 합치기)」 http://whiteat.com/?mid=WhiteAT_Csharp&document_srl=171730.
반응형