string.join加引号

columnsGen = string.Join(",", modelDictionary.Keys);
valueGen = modelDictionary.Values.Aggregate(valueGen, (current, i) => current + ("'" + i + "',")).Trim(',');

 

 

var cparr = checkPoint.Split(',');
string tempcheckPoint = string.Empty;
tempcheckPoint = cparr.Aggregate("", (current, i) => current + ("'" + i + "',")).Trim(',');

posted on 2016-01-06 18:10  wolf12  阅读(2269)  评论(0编辑  收藏  举报