在C#中替换arraylist [英] Replace arraylist in C#
本文介绍了在C#中替换arraylist的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想用.net4.0中使用的新集合替换arraylist
i want to replace arraylist with new collection used in .net4.0
which will be the appropriate collection class???
推荐答案
查看 ^ ]-它是最通用的强类型列表类,并在版本2.0 IIRC中替换了ArrayList
Look at List<T>[^] - it is the most generic strongly typed list class and replaced ArrayList in version 2.0 IIRC
这篇关于在C#中替换arraylist的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文