Opened 14 years ago
Closed 14 years ago
#1375 closed enhancement (done)
When serializing HashSets also serialize the type of the EqualityComparer
Reported by: | abeham | Owned by: | abeham |
---|---|---|---|
Priority: | high | Milestone: | HeuristicLab 3.3.3 |
Component: | Persistence | Version: | 3.3.3 |
Keywords: | Cc: |
Description
Generally it's possible to create a new instance of a HashSet<T> with a custom IEqualityComparer<T>. When serializing such a collection with the HeuristicLab persistence the type of the comparer is not stored, because the HashSet is treated as an IEnumerable.
Same happens when serializing Dictionary<U,V> with a custom equality comparer defined.
Change History (4)
comment:1 Changed 14 years ago by epitzer
- Status changed from new to accepted
comment:2 Changed 14 years ago by epitzer
- Owner changed from epitzer to abeham
- Status changed from accepted to reviewing
comment:4 Changed 14 years ago by mkommend
- Resolution set to done
- Status changed from readytorelease to closed
- Version changed from 3.3.2 to 3.3.3
Note: See
TracTickets for help on using
tickets.
Added custom serializers for generic HashSets and Dictionaries that include the Comparer property (r5290)