Skip to content

Commit 94a3614

Browse files
authored
various improvements to STJ docs (#7517)
1 parent 2c90133 commit 94a3614

28 files changed

+99
-101
lines changed

xml/System.Text.Json.Nodes/JsonArray.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@
3939
4040
## Remarks
4141
42-
It is safe to perform multiple concurrent read operations on a <xref:System.Text.Json.Nodes.JsonArray>,
43-
but issues can occur if the collection is modified while it's being read.
42+
It is safe to perform multiple concurrent read operations on a <xref:System.Text.Json.Nodes.JsonArray>, but issues can occur if the collection is modified while it's being read.
4443
4544
]]></format>
4645
</remarks>

xml/System.Text.Json.Nodes/JsonNode.xml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,11 @@
138138
139139
## Remarks
140140
141-
{T} can be the type or base type of the underlying value.
142-
If the underlying value is a <xref:System.Text.Json.JsonElement> then {T} can also be the type of any primitive
143-
value supported by current <xref:System.Text.Json.JsonElement>.
144-
Specifying the <xref:System.Object> type for {T} will always succeed and return the underlying value as <xref:System.Object>.<br />
145-
The underlying value of a <xref:System.Text.Json.Nodes.JsonValue> after deserialization is an instance of <xref:System.Text.Json.JsonElement>,
146-
otherwise it's the value specified when the <xref:System.Text.Json.Nodes.JsonValue> was created.
141+
{T} can be the type or base type of the underlying value. If the underlying value is a <xref:System.Text.Json.JsonElement> then {T} can also be the type of any primitive value supported by current <xref:System.Text.Json.JsonElement>.
142+
143+
Specifying the <xref:System.Object> type for {T} will always succeed and return the underlying value as <xref:System.Object>.
144+
145+
The underlying value of a <xref:System.Text.Json.Nodes.JsonValue> after deserialization is an instance of <xref:System.Text.Json.JsonElement>,otherwise it's the value specified when the <xref:System.Text.Json.Nodes.JsonValue> was created.
147146
148147
]]></format>
149148
</remarks>
@@ -1970,7 +1969,7 @@
19701969
<ReturnType>System.Nullable&lt;System.Text.Json.Nodes.JsonNodeOptions&gt;</ReturnType>
19711970
</ReturnValue>
19721971
<Docs>
1973-
<summary>Options to control the behavior.</summary>
1972+
<summary>Gets the options to control the behavior.</summary>
19741973
<value>To be added.</value>
19751974
<remarks>To be added.</remarks>
19761975
</Docs>
@@ -2061,7 +2060,7 @@ This method makes a copy of the data the reader acted on, so there is no caller
20612060
<param name="utf8Json">JSON text to parse.</param>
20622061
<param name="nodeOptions">Options to control the node behavior after parsing.</param>
20632062
<param name="documentOptions">Options to control the document behavior during parsing.</param>
2064-
<summary>Parse a <see cref="T:System.IO.Stream" /> as UTF-8-encoded data representing a single JSON value into a <see cref="T:System.Text.Json.Nodes.JsonNode" />. The Stream will be read to completion.</summary>
2063+
<summary>Parses a <see cref="T:System.IO.Stream" /> as UTF-8-encoded data representing a single JSON value into a <see cref="T:System.Text.Json.Nodes.JsonNode" />. The Stream will be read to completion.</summary>
20652064
<returns>A <see cref="T:System.Text.Json.Nodes.JsonNode" /> representation of the JSON value.</returns>
20662065
<remarks>To be added.</remarks>
20672066
<exception cref="T:System.Text.Json.JsonException">
@@ -2219,7 +2218,7 @@ This method makes a copy of the data the reader acted on, so there is no caller
22192218
<Docs>
22202219
<param name="writer">The <see cref="T:System.Text.Json.Utf8JsonWriter" />.</param>
22212220
<param name="options">Options to control the serialization behavior.</param>
2222-
<summary>Write the <see cref="T:System.Text.Json.Nodes.JsonNode" /> into the provided <see cref="T:System.Text.Json.Utf8JsonWriter" /> as JSON.</summary>
2221+
<summary>Writes the <see cref="T:System.Text.Json.Nodes.JsonNode" /> into the provided <see cref="T:System.Text.Json.Utf8JsonWriter" /> as JSON.</summary>
22232222
<remarks>To be added.</remarks>
22242223
<exception cref="T:System.ArgumentNullException">The <paramref name="writer" /> parameter is <see langword="null" />.</exception>
22252224
</Docs>

xml/System.Text.Json.Nodes/JsonNodeOptions.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@
4040
<ReturnType>System.Boolean</ReturnType>
4141
</ReturnValue>
4242
<Docs>
43-
<summary>Specifies whether property names on <see cref="T:System.Text.Json.Nodes.JsonObject" /> are case insensitive.</summary>
44-
<value>To be added.</value>
43+
<summary>Gets or sets a value that indicates whether property names on <see cref="T:System.Text.Json.Nodes.JsonObject" /> are case insensitive.</summary>
44+
<value>
45+
<see langword="true" /> if property names are case insensitive; <see langword="false" /> if property names are case sensitive.</value>
4546
<remarks>To be added.</remarks>
4647
</Docs>
4748
</Member>

xml/System.Text.Json.Nodes/JsonObject.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@
4242
4343
## Remarks
4444
45-
It's safe to perform multiple concurrent read operations on a <xref:System.Text.Json.Nodes.JsonObject>,
46-
but issues can occur if the collection is modified while it's being read.
45+
It's safe to perform multiple concurrent read operations on a <xref:System.Text.Json.Nodes.JsonObject>, but issues can occur if the collection is modified while it's being read.
4746
4847
]]></format>
4948
</remarks>
@@ -589,7 +588,7 @@ This member is an explicit interface member implementation. It can be used only
589588
<Docs>
590589
<param name="writer">The <see cref="T:System.Text.Json.Utf8JsonWriter" />.</param>
591590
<param name="options">Options to control the serialization behavior.</param>
592-
<summary>Write the <see cref="T:System.Text.Json.Nodes.JsonNode" /> into the provided <see cref="T:System.Text.Json.Utf8JsonWriter" /> as JSON.</summary>
591+
<summary>Writes the <see cref="T:System.Text.Json.Nodes.JsonNode" /> into the provided <see cref="T:System.Text.Json.Utf8JsonWriter" /> as JSON.</summary>
593592
<remarks>To be added.</remarks>
594593
<exception cref="T:System.ArgumentNullException">The <paramref name="writer" /> parameter is <see langword="null" />.</exception>
595594
</Docs>

xml/System.Text.Json.Nodes/JsonValue.xml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,12 +1083,11 @@
10831083
10841084
## Remarks
10851085
1086-
{T} can be the type or base type of the underlying value.
1087-
If the underlying value is a <xref:System.Text.Json.JsonElement> then {T} can also be the type of any primitive
1088-
value supported by current <xref:System.Text.Json.JsonElement>.
1089-
Specifying the <xref:System.Object> type for {T} will always succeed and return the underlying value as <xref:System.Object>.<br />
1090-
The underlying value of a <xref:System.Text.Json.Nodes.JsonValue> after deserialization is an instance of <xref:System.Text.Json.JsonElement>,
1091-
otherwise it's the value specified when the <xref:System.Text.Json.Nodes.JsonValue> was created.
1086+
{T} can be the type or base type of the underlying value. If the underlying value is a <xref:System.Text.Json.JsonElement>, then {T} can also be the type of any primitive value supported by current <xref:System.Text.Json.JsonElement>.
1087+
1088+
Specifying the <xref:System.Object> type for {T} will always succeed and return the underlying value as <xref:System.Object>.
1089+
1090+
The underlying value of a <xref:System.Text.Json.Nodes.JsonValue> after deserialization is an instance of <xref:System.Text.Json.JsonElement>, otherwise it's the value specified when the <xref:System.Text.Json.Nodes.JsonValue> was created.
10921091
10931092
]]></format>
10941093
</remarks>

xml/System.Text.Json.Serialization.Metadata/JsonCollectionInfoValues`1.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<Docs>
2020
<typeparam name="TCollection">The collection type.</typeparam>
2121
<summary>Provides serialization metadata about a collection type.</summary>
22-
<remarks>This API is for use by the output of the System.Text.Json source generator and should not be called directly.</remarks>
22+
<remarks>This API is intended for use by the output of the System.Text.Json source generator and should not be called directly.</remarks>
2323
</Docs>
2424
<Members>
2525
<Member MemberName=".ctor">

xml/System.Text.Json.Serialization.Metadata/JsonObjectInfoValues`1.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
2525
## Remarks
2626
27-
This API is for use by the output of the System.Text.Json source generator and should not be called directly.
27+
This API is intended for use by the output of the System.Text.Json source generator and should not be called directly.
2828
2929
]]></format>
3030
</remarks>

xml/System.Text.Json.Serialization.Metadata/JsonParameterInfoValues.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
2121
## Remarks
2222
23-
This API is for use by the output of the System.Text.Json source generator and should not be called directly.
23+
This API is intended for use by the output of the System.Text.Json source generator and should not be called directly.
2424
2525
]]></format>
2626
</remarks>

xml/System.Text.Json.Serialization.Metadata/JsonPropertyInfo.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,15 @@
1515
<Interfaces />
1616
<Docs>
1717
<summary>Provides JSON serialization-related metadata about a property or field.</summary>
18-
<remarks>To be added.</remarks>
18+
<remarks>
19+
<format type="text/markdown"><![CDATA[
20+
21+
## Remarks
22+
23+
This API is intended for use by the output of the System.Text.Json source generator and should not be called directly.
24+
25+
]]></format>
26+
</remarks>
1927
</Docs>
2028
<Members />
2129
</Type>

xml/System.Text.Json.Serialization.Metadata/JsonTypeInfo.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
2121
## Remarks
2222
23-
This API is for use by the output of the System.Text.Json source generator and should not be called directly.
23+
This API is intended for use by the output of the System.Text.Json source generator and should not be called directly.
2424
2525
]]></format>
2626
</remarks>

0 commit comments

Comments
 (0)