c# 字符串以逗号分割属性加上单引号

老是忘,记下来

string s1 = string.Format("'{0}'", SourceName.Replace(",", "','"));

posted @ 2020-10-28 11:39  小小小菜鸟1  阅读(1809)  评论(0编辑  收藏  举报