Steps to reproduce
# create ordered dictionary via [ordered] syntactic sugar
$a = [ordered]@{}
$a['Larry'] = 'Poik!'
$a['Curly'] = 'Nyuk!'
$a['Moe'] = 'Wise guy!'
# get 2nd item from ordered hash
$a[1]
# returns: Nyuk!
# Persist to disk
$a | Export-Clixml ./tempObject.xml
# Deserialize
$b = Import-Clixml ./tempObject.xml
# get 2nd item from rehydrated ordered hash
$b[1]
Expected behavior
Actual behavior
# returns: $null
$a | Get-Member
TypeName: System.Collections.Specialized.OrderedDictionary
...
$b | Get-Member
TypeName: Deserialized.System.Collections.Specialized.OrderedDictionary
...
Deserialized object does not have the full implementation of the original OrderedDictionary object.
Environment data
> $PSVersionTable
Name Value
---- -----
SerializationVersion 1.1 .0.1
PSEdition Core
BuildVersion 3.0 .0.0
PSRemotingProtocolVersion 2.3
WSManStackVersion 3.0
PSVersion 6.0 .0 - alpha
GitCommitId v6.0.0 - alpha.13 - 42 - gf38d09dc6d7bf208cd78d86e1...
CLRVersion
PSCompatibleVersions {1.0 , 2.0 , 3.0 , 4.0 ...} Reactions are currently unavailable
Steps to reproduce
Expected behavior
Actual behavior
Deserialized object does not have the full implementation of the original OrderedDictionary object.
Environment data