开发者

Silverlight (WP7) variable sized array?

开发者 https://www.devze.com 2023-02-28 18:37 出处:网络
I want an array of strings whose size is va开发者_开发问答riable and changes while the app is running, like Cocoa\'s NSMutableArray.Is that possible?You want a List.

I want an array of strings whose size is va开发者_开发问答riable and changes while the app is running, like Cocoa's NSMutableArray. Is that possible?


You want a List.

List<string> strings = new List<string>();
strings.Add("a");
strings.Add("b");

int size = strings.Count;
0

精彩评论

暂无评论...
验证码 换一张
取 消