【发布时间】:2018-06-13 17:50:46
【问题描述】:
给定以下脚本:
function f {
[CmdletBinding()]Param()
Write-Verbose 'f: Start'
$t = New-Object 'System.Collections.ArrayList'
Write-Verbose $t.GetType().Name
return $t
}
$things = New-Object 'System.Collections.ArrayList'
$things.GetType().Name
$things = f -verbose
$things.GetType().Name
为什么$things 不是最后一行的ArrayList?
【问题讨论】:
标签: powershell