Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. > $foo = @()
  2. > $foo.GetType()
  3.  
  4. IsPublic IsSerial Name BaseType
  5. -------- -------- ---- --------
  6. True True Object[] System.Array
  7.  
  8. > $foo = Invoke-Command -ScriptBlock { @() }
  9. > $foo.GetType()
  10. You cannot call a method on a null-valued expression.
  11. At line:1 char:1
  12. + $foo.GetType()
  13. + ~~~~~~~~~~~~~~
  14. + CategoryInfo : InvalidOperation: (:) [], RuntimeException
  15. + FullyQualifiedErrorId : InvokeMethodOnNull
  16.  
  17. > $foo -eq $null
  18. True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement