This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Compare-Hashtable { | |
<# | |
.SYNOPSIS | |
Compare two Hashtable and returns an array of differences. | |
.DESCRIPTION | |
The Compare-Hashtable function computes differences between two Hashtables. Results are returned as | |
an array of objects with the properties: "key" (the name of the key that caused a difference), | |
"side" (one of "<=", "!=" or "=>"), "lvalue" an "rvalue" (resp. the left and right value | |
associated with the key). |