Guest User

Untitled

a guest
Jul 17th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. cls
  2.  
  3. &{
  4. $buzz = @(@("FooBar"))
  5. Write-Host ("Length of parent array is: {0}" -f $buzz.Length)
  6. Write-Host ("Type of parent array is: {0}" -f $buzz.GetType())
  7. Write-Host ("Length of child array is: {0}" -f $buzz[0].Length)
  8. Write-Host ("Type of child array is: {0}" -f $buzz[0].GetType())
  9. }
  10. Write-Host ""
  11. &{
  12. $buzz = @(@("FooBar"), @("BarFoo"))
  13. Write-Host ("Length of parent array is: {0}" -f $buzz.Length)
  14. Write-Host ("Type of parent array is: {0}" -f $buzz.GetType())
  15. Write-Host ("Length of child array is: {0}" -f $buzz[0].Length)
  16. Write-Host ("Type of child array is: {0}" -f $buzz[0].GetType())
  17. }
  18.  
  19.  
  20. #Length of parent array is: 1
  21. #Type of parent array is: System.Object[]
  22. #Length of child array is: 6
  23. #Type of child array is: System.String
  24. #
  25. #Length of parent array is: 2
  26. #Type of parent array is: System.Object[]
  27. #Length of child array is: 1
  28. #Type of child array is: System.Object[]
Add Comment
Please, Sign In to add comment