-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Automatically port System.Text.Json documentation #3795
Conversation
xml/System.Text.Json/JsonElement.xml
Outdated
@@ -652,7 +652,15 @@ If a property is defined multiple times for the same object, the method matches | |||
<Docs> | |||
<summary>Gets a string that represents the original input data backing this value.</summary> | |||
<returns>The original input data backing this value.</returns> | |||
<remarks>To be added.</remarks> | |||
<remarks> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JsonNode
hasn't shipped yet (it's new in 5.0), so I would remove this remark for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise, looks good.
@@ -517,6 +517,8 @@ For more information, see [How to serialize and deserialize JSON](~/docs/standar | |||
|
|||
]]></format> | |||
</remarks> | |||
<exception cref="T:System.ArgumentNullException"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be on one line? Does it make a difference one way or another?
Asking because it was brought up earlier: dotnet/corefx#42026 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One line when it starts with text, like this when it starts with a tag. Just to avoid having the CI touching this file with no need. But it doesn't matter really.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, we should leave it as is then (so that CI doesn't have to modify this file again). Sounds good.
One line when it starts with text,
Can you give me an example of that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ahsonkhan Example of a line starting with just text:
<exception cref="ArgumentException">I started with text.</exception>
In contrast with a line starting with a tag:
<exception cref="ArgumentException"><paramref name="lookAtMe" /> I started with a param tag.</exception>
The tool found 2 exceptions and 1 remark.