C#的split函数分割

C#的split函数分割_空字符串

C#的split函数分割_c#_02

C#的split函数分割_空字符串_03

C#的split函数分割_c#_04

            string str = textBox1.Text;
            string[] strlist = str.Split("\r\n".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);//返回值不包含空字符串元素,
            string[] temp = str.Split(new char[] { '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries);

 

item[0].Column2.Replace("本户", "\t本户").Split("\t".ToCharArray(), StringSplitOptions.RemoveEmptyEntries); 

            var  words = strs.Split((string[])strlist, StringSplitOptions.RemoveEmptyEntries);