Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Describes how to create, use, and sort hashtables in PowerShell.
## Long description

A hashtable, also known as a dictionary or associative array, is a compact data
structure that stores one or more key-value pairs. For example, a hash table
structure that stores one or more key-value pairs. For example, a hashtable
might contain a series of IP addresses and computer names, where the IP
addresses are the keys and the computer names are the values, or vice versa.

Expand Down Expand Up @@ -431,8 +431,8 @@ $now = (Get-Date)
$hash.Add($t, $now)
```

You can't use a subtraction operator to remove a key-value pair from a hash
table, but you can use the `Remove()` method of the hashtable object. The
You can't use a subtraction operator to remove a key-value pair from a
hashtable, but you can use the `Remove()` method of the hashtable object. The
`Remove` method has the following syntax:

```
Expand Down Expand Up @@ -561,8 +561,8 @@ Although you can't sort a hashtable, you can use the `GetEnumerator()` method
of hashtables to enumerate the keys and values, and then use the `Sort-Object`
cmdlet to sort the enumerated values for display.

For example, the following commands enumerate the keys and values in the hash
table in the `$p` variable and then sort the keys in alphabetical order.
For example, the following commands enumerate the keys and values in the
hashtable in the `$p` variable and then sort the keys in alphabetical order.

```powershell
PS> $p.GetEnumerator() | Sort-Object -Property key
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Describes how to create, use, and sort hashtables in PowerShell.
## Long description

A hashtable, also known as a dictionary or associative array, is a compact data
structure that stores one or more key-value pairs. For example, a hash table
structure that stores one or more key-value pairs. For example, a hashtable
might contain a series of IP addresses and computer names, where the IP
addresses are the keys and the computer names are the values, or vice versa.

Expand Down Expand Up @@ -431,8 +431,8 @@ $now = (Get-Date)
$hash.Add($t, $now)
```

You can't use a subtraction operator to remove a key-value pair from a hash
table, but you can use the `Remove()` method of the hashtable object. The
You can't use a subtraction operator to remove a key-value pair from a
hashtable, but you can use the `Remove()` method of the hashtable object. The
`Remove` method has the following syntax:

```
Expand Down Expand Up @@ -561,8 +561,8 @@ Although you can't sort a hashtable, you can use the `GetEnumerator()` method
of hashtables to enumerate the keys and values, and then use the `Sort-Object`
cmdlet to sort the enumerated values for display.

For example, the following commands enumerate the keys and values in the hash
table in the `$p` variable and then sort the keys in alphabetical order.
For example, the following commands enumerate the keys and values in the
hashtable in the `$p` variable and then sort the keys in alphabetical order.

```powershell
PS> $p.GetEnumerator() | Sort-Object -Property key
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Describes how to create, use, and sort hashtables in PowerShell.
## Long description

A hashtable, also known as a dictionary or associative array, is a compact data
structure that stores one or more key-value pairs. For example, a hash table
structure that stores one or more key-value pairs. For example, a hashtable
might contain a series of IP addresses and computer names, where the IP
addresses are the keys and the computer names are the values, or vice versa.

Expand Down Expand Up @@ -431,8 +431,8 @@ $now = (Get-Date)
$hash.Add($t, $now)
```

You can't use a subtraction operator to remove a key-value pair from a hash
table, but you can use the `Remove()` method of the hashtable object. The
You can't use a subtraction operator to remove a key-value pair from a
hashtable, but you can use the `Remove()` method of the hashtable object. The
`Remove` method has the following syntax:

```
Expand Down Expand Up @@ -561,8 +561,8 @@ Although you can't sort a hashtable, you can use the `GetEnumerator()` method
of hashtables to enumerate the keys and values, and then use the `Sort-Object`
cmdlet to sort the enumerated values for display.

For example, the following commands enumerate the keys and values in the hash
table in the `$p` variable and then sort the keys in alphabetical order.
For example, the following commands enumerate the keys and values in the
hashtable in the `$p` variable and then sort the keys in alphabetical order.

```powershell
PS> $p.GetEnumerator() | Sort-Object -Property key
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Describes how to create, use, and sort hashtables in PowerShell.
## Long description

A hashtable, also known as a dictionary or associative array, is a compact data
structure that stores one or more key-value pairs. For example, a hash table
structure that stores one or more key-value pairs. For example, a hashtable
might contain a series of IP addresses and computer names, where the IP
addresses are the keys and the computer names are the values, or vice versa.

Expand Down Expand Up @@ -431,8 +431,8 @@ $now = (Get-Date)
$hash.Add($t, $now)
```

You can't use a subtraction operator to remove a key-value pair from a hash
table, but you can use the `Remove()` method of the hashtable object. The
You can't use a subtraction operator to remove a key-value pair from a
hashtable, but you can use the `Remove()` method of the hashtable object. The
`Remove` method has the following syntax:

```
Expand Down Expand Up @@ -561,8 +561,8 @@ Although you can't sort a hashtable, you can use the `GetEnumerator()` method
of hashtables to enumerate the keys and values, and then use the `Sort-Object`
cmdlet to sort the enumerated values for display.

For example, the following commands enumerate the keys and values in the hash
table in the `$p` variable and then sort the keys in alphabetical order.
For example, the following commands enumerate the keys and values in the
hashtable in the `$p` variable and then sort the keys in alphabetical order.

```powershell
PS> $p.GetEnumerator() | Sort-Object -Property key
Expand Down
Loading