Fix doc comment typo in JsonSerializerOptions.cs (#48590)
authorEric Mutta <eric.mutta@gmail.com>
Mon, 22 Feb 2021 13:54:03 +0000 (16:54 +0300)
committerGitHub <noreply@github.com>
Mon, 22 Feb 2021 13:54:03 +0000 (13:54 +0000)
The following sentence in the doc comments for the `IgnoreReadOnlyFields` member:

> A property is read-only if it isn't marked with the <c>readonly</c> keyword.

Should read:

> A field is read-only if it is marked with the <c>readonly</c> keyword.

src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializerOptions.cs

index c2f0c7e..8a8fe1d 100644 (file)
@@ -313,7 +313,7 @@ namespace System.Text.Json
 
         /// <summary>
         /// Determines whether read-only fields are ignored during serialization.
-        /// A property is read-only if it isn't marked with the <c>readonly</c> keyword.
+        /// A field is read-only if it is marked with the <c>readonly</c> keyword.
         /// The default value is false.
         /// </summary>
         /// <remarks>