Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When a SortedDictionary is serialized, does Aqla keep the "Comparer" of it? #59

Open
inethui opened this issue Feb 27, 2024 · 1 comment

Comments

@inethui
Copy link

inethui commented Feb 27, 2024

I noticed that when a SortedDictionary is serialized/deserialized, its keys are sorted by the natural order of the key's type. The "Comparer" assigned to the SortedDictionary is lost.

@AqlaSolutions
Copy link
Owner

You are right, the comparer is not stored. Unless the comparer is serializable too, it's even impossible to implement. If the deserialization creates a new instance of the sorted dictionary, it doesn't know which comparer to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants