2,187
edits
m (→Datetime: Minor rewording) |
m (→Array Types: Update ArrayList create example) |
||
Line 381: | Line 381: | ||
To force the creation of a .NET array from a PowerShell CmdLet, create one in a fashion such as this... | To force the creation of a .NET array from a PowerShell CmdLet, create one in a fashion such as this... | ||
<source lang="powershell"> | <source lang="powershell"> | ||
$a = New-Object System.Collections.ArrayList(,(Get-Content test.txt)) | $a = New-Object System.Collections.ArrayList # Empty array | ||
$a = New-Object System.Collections.ArrayList(,(Get-Content test.txt)) # Populated with contents of test.txt | |||
</source> | </source> | ||