[已解决问题] 浏览: 137次 解决于 2017-01-05 08:51 public static string CreateSummary(string spliter, params string[] inputs){if (inputs == null || inputs.Length <= 0)return string.Empty;var sb = new StringBuilder();for (var i = 0; i < inputs.Length; i++){if (string.IsNullOrEmpty(inputs[i]))continue;if (sb.Length > 0)sb.Append(spliter);sb.Append(inputs[i]);}return sb.ToString();
添加回答
举报
0/150
提交
取消