List test = new List();
test.Add(\"test\'s\");
test.Add(\"test\");
test.Add(\"test\'s more\");
string s = string.Format(\"\'{0}\'\", string.J
This should work:
List test = new List();
test.Add("test's");
test.Add("test");
test.Add("test's more");
string s = string.Join("','", test.Select(i => i.Replace("'", "''")));
And if you're really looking to enclose the whole thing in single quotes:
string s = string.Format("'{0}'", string.Join("','", test.Select(i => i.Replace("'", "''"))));