Items = new List<string>(10);//我已经定义了泛型容量是10了
Items.Insert(0, height);
Items.Insert(1, weight);
Items.Insert(4, liverFun);//?????为什么这里还是报错了??难道不可以插到索引是4的地方么???
Items.Insert(0, height);
Items.Insert(1, weight);
Items.Insert(4, liverFun);//?????为什么这里还是报错了??难道不可以插到索引是4的地方么???
而且一会又乱插入,一会又乱删除,
然后我就哪个是哪个索引都找不到了.
一团乱麻,不知道你有没有什么好点子???
Items[4] = liverFun