原始数据:
string input = "3,7,2,8,1,9,1,34,67,78,22";
要处理为:
string[] stringArray = { "3", "7", "2", "8", "1", "9", "1", "34", "67", "78", "22" };
最终处理为:
int[] intArray = { 3, 7, 2, 8, 1, 9, 1, 34, 67, 78, 22 };
class Ae { private string _InputValue; private char _Delimiter; public Ae(string inputValue, char delimiter) { this._InputValue = inputValue; this._Delimiter = delimiter; } }