Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- > $foo = @()
- > $foo.GetType()
- IsPublic IsSerial Name BaseType
- -------- -------- ---- --------
- True True Object[] System.Array
- > $foo = Invoke-Command -ScriptBlock { @() }
- > $foo.GetType()
- You cannot call a method on a null-valued expression.
- At line:1 char:1
- + $foo.GetType()
- + ~~~~~~~~~~~~~~
- + CategoryInfo : InvalidOperation: (:) [], RuntimeException
- + FullyQualifiedErrorId : InvokeMethodOnNull
- > $foo -eq $null
- True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement