Skip to content

Commit 5e37f39

Browse files
authored
Update JsonSerializerOptions.xml (#10330)
1 parent 36097ee commit 5e37f39

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

xml/System.Text.Json/JsonSerializerOptions.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -686,8 +686,10 @@ For more information, see [How to ignore properties with System.Text.Json](/dotn
686686
<summary>Gets or sets a value that indicates whether fields are handled during serialization and deserialization.
687687
The default value is <see langword="false" />.</summary>
688688
<value>
689-
<see langword="true" /> if fields are included during serialization; otherwise, <see langword="false" />.</value>
690-
<remarks>To be added.</remarks>
689+
<see langword="true" /> if public fields are included during serialization; otherwise, <see langword="false" />.</value>
690+
<remarks>This flag only enables serialization for public fields, as is the case for properties.
691+
Private members need to be opted into individually using the <see cref="T:System.Text.Json.Serialization.JsonIncludeAttribute" /> attribute.
692+
</remarks>
691693
<exception cref="T:System.InvalidOperationException">This property is set after serialization or deserialization has occurred.</exception>
692694
</Docs>
693695
</Member>

0 commit comments

Comments
 (0)