Hash table vulnerability (property overwrite)?
问题 I was playing around with hash tables in PowerShell, and I noticed some odd behavior related to accessing items. As we know, PowerShell allows at least three different ways of assigning values to hash table entries: $hashtable["foo"] = "bar" #1 $hashtable.Item("foo") = "bar" #2 $hashtable.foo = "bar" #3 Meanwhile, we use the #3 syntax to access the properties of the Hashtable object itself, such as Count , Keys , Values , etc. And if we add an item with the key that conflicts with the name of