我需要快速处理我的页面.要添加的值的计数将是动态的.
以上哪一个是首选?支持有正当理由.
编辑:例如:
string str = "a,b,c"; //Count of the number of elements in str is not fixed
string[] arr = str.Split(',');
Run Code Online (Sandbox Code Playgroud)
要么,
ArrayList al = new ArrayList();
al.Add(str.Split(','));
Run Code Online (Sandbox Code Playgroud)