摘要:
C#字符串连接常用的四种方式:StringBuilder、+、string.Format、List<string>。1.+的方式string sql = "update tableName set int1=" + int1.ToString() + ",int2=" + int2.ToString() + ",int3=" + int3.ToString() + " where id=" + id.ToString();编译器会优化为:string sql = string.Concat(new st 阅读全文