System.StringHelper.Split C# (CSharp) Method

Split() public static method

拆分字符串,过滤空格,无效时返回空数组
public static Split ( String value ) : String[]
value String 字符串
return String[]
        public static String[] Split(this String value, params String[] separators)
        {
            if (String.IsNullOrEmpty(value)) return new String[0];
            if (separators == null || separators.Length < 1 || separators.Length == 1 && separators[0].IsNullOrEmpty()) separators = new String[] { ",", ";" };

            return value.Split(separators, StringSplitOptions.RemoveEmptyEntries);
        }