From c9a67ed3e5110d80c4175c443d48dca151311438 Mon Sep 17 00:00:00 2001 From: carlossanlop Date: Thu, 1 Aug 2019 14:05:20 -0700 Subject: [PATCH 1/3] Document various isolated System.Text.Json elements --- .../JsonStringEnumConverter.xml | 12 ++++++------ xml/System.Text.Json/JsonElement.xml | 4 ++-- xml/System.Text.Json/JsonEncodedText.xml | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/xml/System.Text.Json.Serialization/JsonStringEnumConverter.xml b/xml/System.Text.Json.Serialization/JsonStringEnumConverter.xml index 2924c7d4e47..32243373f31 100644 --- a/xml/System.Text.Json.Serialization/JsonStringEnumConverter.xml +++ b/xml/System.Text.Json.Serialization/JsonStringEnumConverter.xml @@ -84,9 +84,9 @@ Reading is case insensitive. Writing can be customized by using a - To be added. - To be added. - To be added. + The type is checked as to whether it can be converted. + Determines whether the type can be converted. + if the type can be converted; otherwise. To be added. @@ -109,9 +109,9 @@ Reading is case insensitive. Writing can be customized by using a - To be added. - To be added. - To be added. + The being converted. + Create a converter for the provided . + An instance of of type T, where T is compatible with . To be added. diff --git a/xml/System.Text.Json/JsonElement.xml b/xml/System.Text.Json/JsonElement.xml index d9bf2bb8c0c..e657abd8f68 100644 --- a/xml/System.Text.Json/JsonElement.xml +++ b/xml/System.Text.Json/JsonElement.xml @@ -837,9 +837,9 @@ This method does not parse the contents of a JSON string value. - To be added. + The item index. Gets the value at a specified index when the current value is an . - To be added. + A located in the position. To be added. This value's is not . is not in the range [0, ()). diff --git a/xml/System.Text.Json/JsonEncodedText.xml b/xml/System.Text.Json/JsonEncodedText.xml index b76c17a5450..83d45f3e2e6 100644 --- a/xml/System.Text.Json/JsonEncodedText.xml +++ b/xml/System.Text.Json/JsonEncodedText.xml @@ -108,7 +108,7 @@ This type can be used to cache and store known strings used for writing JSON ahe The value to be transformed as JSON encoded text. Encodes the string text value as a JSON string. - To be added. + The string encoded as a JSON string. To be added. is . is too large or contains invalid UTF-16 characters. @@ -154,7 +154,7 @@ This type can be used to cache and store known strings used for writing JSON ahe - To be added. + The object to compare to this instance. Determines whether this instance and a specified object, which must also be a instance, have the same value. if the current instance and are equal; otherwise, . @@ -190,7 +190,7 @@ If `obj` is `null`, the method returns `false`. - To be added. + The object to compare to this instance. Determines whether this instance and another specified instance have the same value. if this instance and have the same value; otherwise, . From cd1ffccc4a1c64d21ebf013b0fcca60383d340ed Mon Sep 17 00:00:00 2001 From: Maira Wenzel Date: Thu, 1 Aug 2019 17:03:51 -0700 Subject: [PATCH 2/3] Update JsonStringEnumConverter.xml --- .../JsonStringEnumConverter.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xml/System.Text.Json.Serialization/JsonStringEnumConverter.xml b/xml/System.Text.Json.Serialization/JsonStringEnumConverter.xml index 32243373f31..2a454193ebe 100644 --- a/xml/System.Text.Json.Serialization/JsonStringEnumConverter.xml +++ b/xml/System.Text.Json.Serialization/JsonStringEnumConverter.xml @@ -84,9 +84,9 @@ Reading is case insensitive. Writing can be customized by using a - The type is checked as to whether it can be converted. - Determines whether the type can be converted. - if the type can be converted; otherwise. + The type to be checked. + Determines whether the specified type can be converted to an enum. + if the type can be converted; otherwise, . To be added. @@ -109,8 +109,8 @@ Reading is case insensitive. Writing can be customized by using a - The being converted. - Create a converter for the provided . + The type to convert. + Create a converter for the specified type. An instance of of type T, where T is compatible with . To be added. From 0e4b02e4a7c2daf9fceba2360afa6baf85d9b8aa Mon Sep 17 00:00:00 2001 From: Maira Wenzel Date: Thu, 1 Aug 2019 17:07:35 -0700 Subject: [PATCH 3/3] Update JsonElement.xml --- xml/System.Text.Json/JsonElement.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xml/System.Text.Json/JsonElement.xml b/xml/System.Text.Json/JsonElement.xml index e657abd8f68..6aec1410bc2 100644 --- a/xml/System.Text.Json/JsonElement.xml +++ b/xml/System.Text.Json/JsonElement.xml @@ -838,8 +838,8 @@ This method does not parse the contents of a JSON string value. The item index. - Gets the value at a specified index when the current value is an . - A located in the position. + Gets the value at the specified index if the current value is an . + The value at the specified index. To be added. This value's is not . is not in the range [0, ()).