StringBuilder s = new StringBuilder(); s.AppendFormat("'{0}'", myData);
string output = string.Format("'{0}'", data);
string s = "1,2,3"; string replaced = "'"+s.Replace(",", "','")+"'";
string s = "123"; string replaced = "'"+s.Replace("", "'")+"'";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)