The List<string>
has ("ABC","","DEF","","XYZ"), how can I get the string "ABC::DEF::XYZ" out of the List in C#?
ADDED
List<string> strings = new List<string> {"ABC","","DEF","","XYZ"};
string joined = string.Join("::", strings.ToArray());
Console.WriteLine(joined);
gives ABC::::DEF::::XYZ
, not ABC::DEF::XYZ
, how can one skip the empty strings ("") in a list?