/// <summary>
/// 将List转化为String
/// </summary>
/// <param name="Lists"></param>
/// <param name="ch"></param>
/// <returns></returns>
public static string ListTOString(this List<string> Lists, char ch)
{
string strReturn = "";
foreach (var item in Lists)
{
strReturn = strReturn + item.ToString() + ch;
}
return strReturn.TrimEnd(ch);
}
/// <summary>
/// 将List(int)转化为String
/// </summary>
/// <param name="Lists"></param>
/// <param name="ch"></param>
/// <returns></returns>
public static string ListTOString(this List<int> Lists, char ch)
{
string strReturn = "";
foreach (var item in Lists)
{
strReturn = strReturn + item.ToString() + ch;
}
return strReturn.TrimEnd(ch);
}