c#能不能像vb.net那样动态定义数组?
c#能不能像vb.net那样动态定义数组?
[解决办法]
ArrayList或者List <T>
[解决办法]
1.
数组? 不能
2.
动态列表,考虑
System.Collections.ArrayList
// 2.0 推荐泛型版本
System.Collections.Generic.List <T>
发布时间: 2011-12-27 22:22:54 作者: rapoo
c#能不能像vb.net那样动态定义数组?
c#能不能像vb.net那样动态定义数组?
[解决办法]
ArrayList或者List <T>
[解决办法]
1.
数组? 不能
2.
动态列表,考虑
System.Collections.ArrayList
// 2.0 推荐泛型版本
System.Collections.Generic.List <T>