You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
630 B
C#
24 lines
630 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Rs.Framework
|
|
{
|
|
public static class ArrayExt
|
|
{
|
|
/// <summary>
|
|
/// 把数组转化为字符串,以指定的字符串分割
|
|
/// </summary>
|
|
/// <typeparam name="T"></typeparam>
|
|
/// <param name="arr"></param>
|
|
/// <param name="separator"></param>
|
|
/// <returns></returns>
|
|
public static string ToJoinString<T>(this IEnumerable<T> arr, string separator = ",")
|
|
{
|
|
return string.Join(separator, arr);
|
|
}
|
|
}
|
|
}
|