-
Notifications
You must be signed in to change notification settings - Fork 0
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
How to serialize System.Uri? #40
Comments
Why not |
Can we figure out relative/absolute in all cases when deserializing then? |
@JohanLarsson I did think Uri could roundtrip through a string losslessly. Do you have tests with counterexamples? |
Nope no unit tests, I don't use uri much so don't know it well. Hence the issue. |
Looks like UriKind would need to be serialized: https://docs.microsoft.com/dotnet/api/system.uri.-ctor#System_Uri__ctor_System_String_System_UriKind_ |
<Uri AbsoluteUri="https://gitter.im/GuOrg/Gu.Xml" />
<Uri RelativeUri="GuOrg/Gu.Xml" /> Are pretty short no? |
I am pretty sure absolute is the most common, so my mind jumps to making that the default:
...but yes, all options presented so far are pretty short. |
We also want |
The text was updated successfully, but these errors were encountered: