Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cls
- &{
- $buzz = @(@("FooBar"))
- Write-Host ("Length of parent array is: {0}" -f $buzz.Length)
- Write-Host ("Type of parent array is: {0}" -f $buzz.GetType())
- Write-Host ("Length of child array is: {0}" -f $buzz[0].Length)
- Write-Host ("Type of child array is: {0}" -f $buzz[0].GetType())
- }
- Write-Host ""
- &{
- $buzz = @(@("FooBar"), @("BarFoo"))
- Write-Host ("Length of parent array is: {0}" -f $buzz.Length)
- Write-Host ("Type of parent array is: {0}" -f $buzz.GetType())
- Write-Host ("Length of child array is: {0}" -f $buzz[0].Length)
- Write-Host ("Type of child array is: {0}" -f $buzz[0].GetType())
- }
- #Length of parent array is: 1
- #Type of parent array is: System.Object[]
- #Length of child array is: 6
- #Type of child array is: System.String
- #
- #Length of parent array is: 2
- #Type of parent array is: System.Object[]
- #Length of child array is: 1
- #Type of child array is: System.Object[]
Add Comment
Please, Sign In to add comment