You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Automatically port System.Text.Json.Serialization.JsonConverterAttribute (#2887)
* Automatically port System.Text.Json.Serialization.JsonConverterAttribute
* suggestions by rpetrusha and Jozkee
Co-Authored-By: Ron Petrusha <[email protected]>
Co-Authored-By: David Cantu <[email protected]>
* missing value
Copy file name to clipboardExpand all lines: xml/System.Text.Json.Serialization/JsonConverterAttribute.xml
+23-11Lines changed: 23 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -19,8 +19,20 @@
19
19
</Attribute>
20
20
</Attributes>
21
21
<Docs>
22
-
<summary>To be added.</summary>
23
-
<remarks>To be added.</remarks>
22
+
<summary>When placed on a property or type, specifies the converter type to use.</summary>
23
+
<remarks>
24
+
<formattype="text/markdown"><![CDATA[
25
+
26
+
## Remarks
27
+
28
+
The specified converter type must derive from <xref:System.Text.Json.Serialization.JsonConverter>.
29
+
30
+
When placed on a property, the specified converter will always be used.
31
+
32
+
When placed on a type, the specified converter will be used unless a compatible converter is added to the <xref:System.Text.Json.JsonSerializerOptions.Converters?displayProperty=nameWithType> collection or there is another <xref:System.Text.Json.Serialization.JsonConverterAttribute> on a property of the same type.
33
+
34
+
]]></format>
35
+
</remarks>
24
36
</Docs>
25
37
<Members>
26
38
<MemberMemberName=".ctor">
@@ -36,7 +48,7 @@
36
48
</AssemblyInfo>
37
49
<Parameters />
38
50
<Docs>
39
-
<summary>To be added.</summary>
51
+
<summary>Initializes a new instance of <seecref="T:System.Text.Json.Serialization.JsonConverterAttribute" />.</summary>
<paramname="converterType">The type of the converter.</param>
72
+
<summary>Initializes a new instance of <seecref="T:System.Text.Json.Serialization.JsonConverterAttribute" /> with the specified converter type.</summary>
61
73
<remarks>To be added.</remarks>
62
74
</Docs>
63
75
</Member>
@@ -77,8 +89,8 @@
77
89
<ReturnType>System.Type</ReturnType>
78
90
</ReturnValue>
79
91
<Docs>
80
-
<summary>To be added.</summary>
81
-
<value>To be added.</value>
92
+
<summary>Gets the type of the <seecref="T:System.Text.Json.Serialization.JsonConverterAttribute"/>, or <seelangword="null" /> if it was created without a type.</summary>
93
+
<value>The type of the <seecref="T:System.Text.Json.Serialization.JsonConverterAttribute"/>, or <seelangword="null" /> if it was created without a type.</value>
<paramname="typeToConvert">The type of the converter.</param>
117
+
<summary>When overridden in a derived class and <seecref="P:System.Text.Json.Serialization.JsonConverterAttribute.ConverterType" /> is <seelangword="null" />, allows the derived class to create a <seecref="T:System.Text.Json.Serialization.JsonConverter"/> in order to pass additional state.</summary>
0 commit comments