将列表转换成字符串
作者:互联网
public static string ListToString(IList<string> stringList) { string result = ""; if (stringList != null) { foreach (string value in stringList) { result += "'" + value.Trim() + "',"; } } if (!string.IsNullOrEmpty(result)) { result = result.Remove(result.Length - 1, 1); } return result; }
标签:Trim,转换成,return,string,value,列表,result,字符串,stringList 来源: https://www.cnblogs.com/fenghaolei/p/12574971.html