1 /// <summary> 2 /// 扩展类 3 /// </summary> 4 public static class Extend 5 { 6 /// <summary> 7 /// 扩展Join方法 8 /// 把数组分割 9 /// 截取最后一位 10 /// </summary> 11 /// <param name="s"></param> 12 /// <param name="separotor">间隔符号</param> 13 /// <param name="value">数组</param> 14 /// <returns></returns> 15 public static string E_Join(this string [] value,string separotor) 16 { 17 string str = string.Join(separotor, value); 18 if (str.Length >= 2) 19 { 20 return str.Substring(0, str.Length - 1); 21 } 22 else 23 { 24 return str; 25 } 26 } 27 }