开发者

List of objects in PowerShell?

开发者 https://www.devze.com 2023-02-22 00:49 出处:网络
If I have three objects of开发者_JAVA技巧 the same type, how can I add them in a list so I can do afterwards

If I have three objects of开发者_JAVA技巧 the same type, how can I add them in a list so I can do afterwards foreach ($entry in $list)?

Thanks.


Do you mean like this?

$a=1
$b=2
$c=3
$list = $a,$b,$c
0

精彩评论

暂无评论...
验证码 换一张
取 消