C# 没有这个类似的。不需要,因为程序可以自定义变量。你这种需要,那只要申明一个List 就行了。T为你对象类型如Employee,List emps=new List();然后 emps.add(....)