We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 Uri is serialized with preserveObjectReferences and versionTolerance enabled, deserialization will fail with InvalidCastException.
Uri
InvalidCastException
It happens like this. During serialization,
string
session.TryGetObjectId
Reason is, that SerializerSession is using default equality comparer for tracked objects and string and Uri are equal, when having the same value.
SerializerSession
The text was updated successfully, but these errors were encountered:
Possible duplicate of #85 ?
Sorry, something went wrong.
Not sure, but I'd say it's not the same issue
Successfully merging a pull request may close this issue.
when
Uri
is serialized with preserveObjectReferences and versionTolerance enabled, deserialization will fail withInvalidCastException
.It happens like this. During serialization,
Uri
itselfUri
contains the url itself in several fields as stringstring
valuesession.TryGetObjectId
will find the previous object, unfortunatelly it won't bestring
, butUri
InvalidCastException
Reason is, that
SerializerSession
is using default equality comparer for tracked objects andstring
andUri
are equal, when having the same value.The text was updated successfully, but these errors were encountered: