File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
reference/docs-conceptual/learn/deep-dives Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11---
22description : Hashtables are really important in PowerShell so it's good to have a solid understanding of them.
33ms.custom : contributor-KevinMarquette
4- ms.date : 10/22/2025
4+ ms.date : 03/09/2026
55title : Everything you wanted to know about hashtables
66---
77# Everything you wanted to know about hashtables
@@ -333,7 +333,7 @@ detail in my logic. I started to use it to test if a key was present. When the v
333333zero, that statement would return ` $false ` unexpectedly.
334334
335335``` powershell
336- if( $person.age -ne $null ){...}
336+ if( $null -ne $person.age ){...}
337337```
338338
339339This works around that issue for zero values but not $null vs non-existent keys. Most of the time
@@ -1087,7 +1087,8 @@ function Get-DeepClone
10871087 param(
10881088 $InputObject
10891089 )
1090- $TempCliXmlString = [System.Management.Automation.PSSerializer]::Serialize($obj, [int32]::MaxValue)
1090+ $TempCliXmlString = [System.Management.Automation.PSSerializer]::Serialize(
1091+ $InputObject, [int32]::MaxValue)
10911092 return [System.Management.Automation.PSSerializer]::Deserialize($TempCliXmlString)
10921093}
10931094```
You can’t perform that action at this time.
0 commit comments