Open josephwhite opened 1 month ago
While this is certainly possible is the reason for wanting this because some cmdlets you want to provide the data to only support [Hashtable]
rather than [IDictionary]
? Seems like it would be more flexible to change the latter if you are in control of them so it doesn't care what dictionary type is supplied.
Also keep in mind OrderedHashtable
is only available in 7.3+, older PowerShell versions will not be able to use it.
Similar to
ConvertFrom-Json
, it would be nice to have parameter to natively cast theOrderedDictionary
to anOrderedHashtable
type.