我该如何在PowerShell 2中创建一个列表? 我试着这些:
PowerShell 2中的泛型不起作用?
[activator]::createinstance(([type]'system.collections.generic.list`1').makegenerictype([string]))
和
[activator]::createinstance(([type]'system.collections.generic.list`1').makegenerictype([string]))
和我得到的只是什么都没有。出了什么问题?
我运行XP SP3,如果它的事项
我也无法得到这一个工作,没有任何回报。它应该工作吗? – Parsa 2010-01-21 17:04:33
如果你使用的是PowerShell 2.0,它应该。 – 2010-01-21 17:19:55
现在,我想通了,这些尝试都没问题,问题是PS正在显示数据,所以它什么都不显示,谢谢。 – Parsa 2010-01-21 17:27:44