From 404051d1418ddd228e81a7de48d68996edac9341 Mon Sep 17 00:00:00 2001 From: carlossanlop Date: Tue, 30 Jul 2019 16:59:07 -0700 Subject: [PATCH 1/3] Automatically port System.Text.Json.Serialization.JsonConverterAttribute --- .../JsonConverterAttribute.xml | 28 +++++++++++++------ 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/xml/System.Text.Json.Serialization/JsonConverterAttribute.xml b/xml/System.Text.Json.Serialization/JsonConverterAttribute.xml index c4781a2bbb3..1108dfddebd 100644 --- a/xml/System.Text.Json.Serialization/JsonConverterAttribute.xml +++ b/xml/System.Text.Json.Serialization/JsonConverterAttribute.xml @@ -19,8 +19,20 @@ - To be added. - To be added. + When placed on a property or type, specifies the converter type to use. + + . + +When placed on a property, the specified converter will always be used. + +When placed on a type, the specified converter will be used unless a compatible converter is added to or there is another on a property of the same type. + + ]]> + @@ -36,7 +48,7 @@ - To be added. + Initializes a new instance of . To be added. @@ -56,8 +68,8 @@ - To be added. - To be added. + The type of the converter. + Initializes a new instance of with the specified converter type. To be added. @@ -77,7 +89,7 @@ System.Type - To be added. + The type of the converter to create, or if should be used to obtain the converter. To be added. To be added. @@ -102,8 +114,8 @@ To be added. - To be added. - To be added. + If overridden and is , allows a custom attribute to create the converter in order to pass additional state. + The custom converter. To be added. From 276c22251582af6297175a8dded2ebeca5505f2f Mon Sep 17 00:00:00 2001 From: Carlos Sanchez Lopez <1175054+carlossanlop@users.noreply.github.com> Date: Thu, 1 Aug 2019 09:55:24 -0700 Subject: [PATCH 2/3] suggestions by rpetrusha and Jozkee Co-Authored-By: Ron Petrusha Co-Authored-By: David Cantu --- .../JsonConverterAttribute.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xml/System.Text.Json.Serialization/JsonConverterAttribute.xml b/xml/System.Text.Json.Serialization/JsonConverterAttribute.xml index 1108dfddebd..e310d420b54 100644 --- a/xml/System.Text.Json.Serialization/JsonConverterAttribute.xml +++ b/xml/System.Text.Json.Serialization/JsonConverterAttribute.xml @@ -29,7 +29,7 @@ The specified converter type must derive from or there is another on a property of the same type. +When placed on a type, the specified converter will be used unless a compatible converter is added to the collection or there is another on a property of the same type. ]]> @@ -89,8 +89,8 @@ When placed on a type, the specified converter will be used unless a compatible System.Type - The type of the converter to create, or if should be used to obtain the converter. - To be added. + Gets the type of the , or if it was created without a type. + The type of the , or if it was created without a type. To be added. @@ -114,10 +114,10 @@ When placed on a type, the specified converter will be used unless a compatible To be added. - If overridden and is , allows a custom attribute to create the converter in order to pass additional state. + When overridden in a derived class and is , allows the derived class to create a in order to pass additional state. The custom converter. To be added. - \ No newline at end of file + From 9969d1c620dd604e610bcc340a443be8ef726692 Mon Sep 17 00:00:00 2001 From: Carlos Sanchez Lopez <1175054+carlossanlop@users.noreply.github.com> Date: Thu, 1 Aug 2019 13:07:50 -0700 Subject: [PATCH 3/3] missing value --- xml/System.Text.Json.Serialization/JsonConverterAttribute.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/System.Text.Json.Serialization/JsonConverterAttribute.xml b/xml/System.Text.Json.Serialization/JsonConverterAttribute.xml index e310d420b54..a9e0f6065b1 100644 --- a/xml/System.Text.Json.Serialization/JsonConverterAttribute.xml +++ b/xml/System.Text.Json.Serialization/JsonConverterAttribute.xml @@ -113,7 +113,7 @@ When placed on a type, the specified converter will be used unless a compatible - To be added. + The type of the converter. When overridden in a derived class and is , allows the derived class to create a in order to pass additional state. The custom converter. To be added.