HI all I have problem when trying to convert list collection string to one line string. But for each item i must edit with specific format.
Example
List<string> items = new List<string>();
string result = string.Empty;
items.Add("First");
items.Add("Second");
items.Add("Last");
result = string.Join(",", items.ToArray());
Console.WriteLine(result); // Display: First,Second,Last
But I wish to convert to something like this:
[First],[Second],[Last]
or something like
--First-,--Second-,--Last-
I know there few technique to write this code using foreach for loop.
But could it write code just change all item in list collection into specific pattern string.
So the items collections string contain like from "First" to "\First/", or "Last" to "''Last'".
Regard