/// <summary> /// 输出到bigarraylist /// </summary> /// <returns></returns> public BigArrayList ToBigArrayList() { if (_sourceString == "") { return(new BigArrayList()); } BigArrayList sendOut = new BigArrayList(); string[] sp = Regex.Split(_sourceString, _SplitString, RegexOptions.IgnoreCase); foreach (string a in sp) { sendOut.Add(a); } return(sendOut); }
/// <summary> /// 以bigarraylist初始化 /// </summary> /// <param name="value">字符</param> /// <param name="splitValue">分割字符</param> public StringGroup(BigArrayList value, string splitValue) { _sourceString = ""; for (int a = 0; a < value.Count; a++) { if (_sourceString == "") { _sourceString = value.Item(a).ToString(); } else { _sourceString += splitValue; _sourceString += value.Item(a).ToString(); } } _SplitString = splitValue; }