/// <summary> /// list转换成格式的字符串 /// </summary> /// <param name="param">拼接格式字符串</param> /// <param name="list"></param> /// <returns></returns> public string GetStrFromList(string param, List<string> list) { return list.Count > 0 ? String.Join(param, list) : string.Empty; } /// <summary> /// 数组转换成指定格式的字符串 /// </summary> /// <param name="param">拼接格式字符串</param> /// <param name="list"></param> /// <returns></returns> public string GetStrFromList(string param, string[] strArr) { return strArr.Length > 0 ? String.Join(param, strArr) : string.Empty; }