Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1 +0,0 @@
|
|||
$hashtable = @{}
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
$hashtable = @{
|
||||
"key1" = "value 1"
|
||||
key2 = 5 # if the key name has no spaces, no quotes are needed.
|
||||
}
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
$hashtable.foo = "bar"
|
||||
$hashtable['bar'] = 42
|
||||
$hashtable."a b" = 3.14 # keys can contain spaces, property-style access needs quotation marks, then
|
||||
$hashtable[5] = 8 # keys don't need to be strings
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
# Case insensitive keys, both end up as the same key:
|
||||
$h=@{}
|
||||
$h['a'] = 1
|
||||
$h['A'] = 2
|
||||
$h
|
||||
|
||||
Name Value
|
||||
---- -----
|
||||
a 2
|
||||
|
||||
# Case sensitive keys:
|
||||
$h = New-Object -TypeName System.Collections.Hashtable
|
||||
$h['a'] = 1
|
||||
$h['A'] = 2
|
||||
$h
|
||||
|
||||
Name Value
|
||||
---- -----
|
||||
A 2
|
||||
a 1
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
$hashtable.key1 # value 1
|
||||
$hashtable['key2'] # 5
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
$obj = [PSCustomObject]@{
|
||||
"key1" = "value 1"
|
||||
key2 = 5
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue