namespace DS.Module.Core; public static class GenericHelper { /// /// 把数组转为逗号连接的字符串 /// /// /// /// public static string ArrayToString(dynamic data, string Str) { string resStr = Str; try { foreach (var item in data) { if (resStr != "") resStr += ","; if (item is string) { resStr += item; } else { resStr += item.ToString(); } } } catch { throw; } return resStr; } }