1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-07-31 20:10:49 +02:00

Final comments

This commit is contained in:
Andrew Ryan Davis
2020-08-20 10:46:03 -07:00
parent a1b13e3757
commit 88f7de0db0

View File

@@ -122,7 +122,7 @@ $False - 5 # => -5
[System.Collections.ArrayList]$a = @() # Point a at a new list [System.Collections.ArrayList]$a = @() # Point a at a new list
$a = (1,2,3,4) $a = (1,2,3,4)
$b = $a # => Point b at what a is pointing to $b = $a # => Point b at what a is pointing to
$b -is $a.getType() # => True, a and b equal same type $b -is $a.GetType() # => True, a and b equal same type
$b -eq $a # => True, a and b values are equal $b -eq $a # => True, a and b values are equal
[System.Collections.Hashtable]$b = @{} # => Point a at a new hash table [System.Collections.Hashtable]$b = @{} # => Point a at a new hash table
$b = @{'one' = 1 $b = @{'one' = 1
@@ -158,7 +158,7 @@ $age = 22
"Making`tTables`tWith`tTabs" # => Format things with tabs "Making`tTables`tWith`tTabs" # => Format things with tabs
# Negate pound sign to prevent comment # Negate pound sign to prevent comment
# Note that the function of '#' is removed, but '#" is still present # Note that the function of '#' is removed, but '#' is still present
`#Get-Process # => Fail: not a recognized cmdlet `#Get-Process # => Fail: not a recognized cmdlet
# $null is not an object # $null is not an object