|
56 | 56 | <summary>Gets the constructor parameter associated with the current property.</summary>
|
57 | 57 | <value>To be added.</value>
|
58 | 58 | <remarks>
|
59 |
| - <para>Returns the <see cref="T:System.Text.Json.Serialization.Metadata.JsonParameterInfo" /> metadata for the parameter in the</para> |
60 |
| - <para>deserialization constructor that has been associated with the current property.</para> |
61 |
| - <para>A constructor parameter is matched to a property or field if they are of the</para> |
62 |
| - <para>same type and have the same name, up to case insensitivity. Each constructor</para> |
63 |
| - <para>parameter must be matched to exactly one property of field.</para> |
| 59 | + <para>Returns the <see cref="T:System.Text.Json.Serialization.Metadata.JsonParameterInfo" /> metadata for the parameter in the deserialization constructor that has been associated with the current property.</para> |
| 60 | + <para>A constructor parameter is matched to a property or field if they are of the same type and have the same (case-insensitive) name. Each constructor parameter must be matched to exactly one property or field.</para> |
64 | 61 | </remarks>
|
65 | 62 | </Docs>
|
66 | 63 | </Member>
|
|
94 | 91 |
|
95 | 92 | ## Remarks
|
96 | 93 |
|
97 |
| -When resolving metadata via <xref:System.Text.Json.Serialization.Metadata.DefaultJsonTypeInfoResolver>, this property |
98 |
| - will be populated with the underlying <xref:System.Reflection.MemberInfo> of the serialized property or field. |
| 94 | +When resolving metadata via <xref:System.Text.Json.Serialization.Metadata.DefaultJsonTypeInfoResolver> or <xref:System.Text.Json.Serialization.JsonSerializerContext>, this property will be populated with the underlying <xref:System.Reflection.MemberInfo> of the serialized property or field. |
99 | 95 |
|
100 |
| -Setting a custom attribute provider has no impact on the contract model |
101 |
| - but serves as metadata for downstream contract modifiers. |
| 96 | +Setting a custom attribute provider has no impact on the contract model but serves as metadata for downstream contract modifiers. |
102 | 97 |
|
103 | 98 | ]]></format>
|
104 | 99 | </remarks>
|
@@ -135,10 +130,9 @@ Setting a custom attribute provider has no impact on the contract model
|
135 | 130 |
|
136 | 131 | ## Remarks
|
137 | 132 |
|
138 |
| -It is possible to use <xref:System.Text.Json.Serialization.JsonConverterFactory> instances with this property. |
| 133 | +It's possible to use <xref:System.Text.Json.Serialization.JsonConverterFactory> instances with this property. |
139 | 134 |
|
140 |
| -For contracts originating from <xref:System.Text.Json.Serialization.Metadata.DefaultJsonTypeInfoResolver>, the value of |
141 |
| - <xref:System.Text.Json.Serialization.Metadata.JsonPropertyInfo.CustomConverter> will be mapped from <xref:System.Text.Json.Serialization.JsonConverterAttribute> annotations. |
| 135 | +For contracts originating from <xref:System.Text.Json.Serialization.Metadata.DefaultJsonTypeInfoResolver>, the value of <xref:System.Text.Json.Serialization.Metadata.JsonPropertyInfo.CustomConverter> will be mapped from <xref:System.Text.Json.Serialization.JsonConverterAttribute> annotations. |
142 | 136 |
|
143 | 137 | ]]></format>
|
144 | 138 | </remarks>
|
@@ -225,10 +219,7 @@ Setting to `null` will result in the property being skipped on serialization.
|
225 | 219 | <remarks>
|
226 | 220 | <format type="text/markdown"><![CDATA[
|
227 | 221 |
|
228 |
| -## Remarks |
229 |
| -
|
230 |
| -For contracts originating from <xref:System.Text.Json.Serialization.Metadata.DefaultJsonTypeInfoResolver> or <xref:System.Text.Json.Serialization.JsonSerializerContext>, |
231 |
| - the value of this property will be mapped from <xref:System.Text.Json.Serialization.JsonExtensionDataAttribute> annotations. |
| 222 | +For contracts originating from <xref:System.Text.Json.Serialization.Metadata.DefaultJsonTypeInfoResolver> or <xref:System.Text.Json.Serialization.JsonSerializerContext>, the value of this property will be mapped from <xref:System.Text.Json.Serialization.JsonExtensionDataAttribute> annotations. |
232 | 223 |
|
233 | 224 | ]]></format>
|
234 | 225 | </remarks>
|
@@ -258,11 +249,8 @@ The current <see cref="P:System.Text.Json.Serialization.Metadata.JsonPropertyInf
|
258 | 249 | <summary>Gets or sets a value indicating whether the return type of the getter is annotated as nullable.</summary>
|
259 | 250 | <value>To be added.</value>
|
260 | 251 | <remarks>
|
261 |
| - <para>Contracts originating from <see cref="T:System.Text.Json.Serialization.Metadata.DefaultJsonTypeInfoResolver" /> or <see cref="T:System.Text.Json.Serialization.JsonSerializerContext" />,</para> |
262 |
| - <para>derive the value of this property from nullable reference type annotations, including annotations</para> |
263 |
| - <para>from attributes such as <see cref="T:System.Diagnostics.CodeAnalysis.NotNullAttribute" /> or <see cref="T:System.Diagnostics.CodeAnalysis.MaybeNullAttribute" />.</para> |
264 |
| - <para>This property has no effect on serialization unless the <see cref="P:System.Text.Json.JsonSerializerOptions.RespectNullableAnnotations" /></para> |
265 |
| - <para>property has been enabled, in which case the serializer will reject any <see langword="null" /> values returned by the getter.</para> |
| 252 | + <para>Contracts originating from <see cref="T:System.Text.Json.Serialization.Metadata.DefaultJsonTypeInfoResolver" /> or <see cref="T:System.Text.Json.Serialization.JsonSerializerContext" />, derive the value of this property from nullable reference type annotations, including annotations from attributes such as <see cref="T:System.Diagnostics.CodeAnalysis.NotNullAttribute" /> or <see cref="T:System.Diagnostics.CodeAnalysis.MaybeNullAttribute" />.</para> |
| 253 | + <para>This property has no effect on serialization unless the <see cref="P:System.Text.Json.JsonSerializerOptions.RespectNullableAnnotations" /> property has been enabled, in which case the serializer will reject any <see langword="null" /> values returned by the getter.</para> |
266 | 254 | </remarks>
|
267 | 255 | <exception cref="T:System.InvalidOperationException">
|
268 | 256 | <para>The <see cref="T:System.Text.Json.Serialization.Metadata.JsonPropertyInfo" /> instance has been locked for further modification.</para>
|
@@ -326,13 +314,9 @@ The `required` keyword is currently not supported in <xref:System.Text.Json.Seri
|
326 | 314 | <summary>Gets or sets a value indicating whether the input type of the setter is annotated as nullable.</summary>
|
327 | 315 | <value>To be added.</value>
|
328 | 316 | <remarks>
|
329 |
| - <para>Contracts originating from <see cref="T:System.Text.Json.Serialization.Metadata.DefaultJsonTypeInfoResolver" /> or <see cref="T:System.Text.Json.Serialization.JsonSerializerContext" />,</para> |
330 |
| - <para>derive the value of this property from nullable reference type annotations, including annotations</para> |
331 |
| - <para>from attributes such as <see cref="T:System.Diagnostics.CodeAnalysis.AllowNullAttribute" /> or <see cref="T:System.Diagnostics.CodeAnalysis.DisallowNullAttribute" />.</para> |
332 |
| - <para>This property has no effect on deserialization unless the <see cref="P:System.Text.Json.JsonSerializerOptions.RespectNullableAnnotations" /></para> |
333 |
| - <para>property has been enabled, in which case the serializer will reject any <see langword="null" /> deserialization results.</para> |
334 |
| - <para>If the property has been associated with a deserialization constructor parameter,</para> |
335 |
| - <para>this setting reflected the nullability annotation of the parameter and not the property setter.</para> |
| 317 | + <para>Contracts originating from <see cref="T:System.Text.Json.Serialization.Metadata.DefaultJsonTypeInfoResolver" /> or <see cref="T:System.Text.Json.Serialization.JsonSerializerContext" />, derive the value of this property from nullable reference type annotations, including annotations from attributes such as <see cref="T:System.Diagnostics.CodeAnalysis.AllowNullAttribute" /> or <see cref="T:System.Diagnostics.CodeAnalysis.DisallowNullAttribute" />.</para> |
| 318 | + <para>This property has no effect on deserialization unless the <see cref="P:System.Text.Json.JsonSerializerOptions.RespectNullableAnnotations" /> property has been enabled, in which case the serializer will reject any <see langword="null" /> deserialization results.</para> |
| 319 | + <para>If the property has been associated with a deserialization constructor parameter, this setting reflected the nullability annotation of the parameter and not the property setter.</para> |
336 | 320 | </remarks>
|
337 | 321 | <exception cref="T:System.InvalidOperationException">
|
338 | 322 | <para>The <see cref="T:System.Text.Json.Serialization.Metadata.JsonPropertyInfo" /> instance has been locked for further modification.</para>
|
@@ -367,9 +351,7 @@ The `required` keyword is currently not supported in <xref:System.Text.Json.Seri
|
367 | 351 |
|
368 | 352 | The value of <xref:System.Text.Json.Serialization.Metadata.JsonPropertyInfo.Name> cannot conflict with that of other <xref:System.Text.Json.Serialization.Metadata.JsonPropertyInfo> defined in the declaring <xref:System.Text.Json.Serialization.Metadata.JsonTypeInfo>.
|
369 | 353 |
|
370 |
| -For contracts originating from <xref:System.Text.Json.Serialization.Metadata.DefaultJsonTypeInfoResolver> or <xref:System.Text.Json.Serialization.JsonSerializerContext>, |
371 |
| - the value typically reflects the underlying .NET member name, the name derived from <xref:System.Text.Json.JsonSerializerOptions.PropertyNamingPolicy>, |
372 |
| - or the value specified in <xref:System.Text.Json.Serialization.JsonPropertyNameAttribute>. |
| 354 | +For contracts originating from <xref:System.Text.Json.Serialization.Metadata.DefaultJsonTypeInfoResolver> or <xref:System.Text.Json.Serialization.JsonSerializerContext>, the value typically reflects the underlying .NET member name, the name derived from <xref:System.Text.Json.JsonSerializerOptions.PropertyNamingPolicy>, or the value specified in <xref:System.Text.Json.Serialization.JsonPropertyNameAttribute>. |
373 | 355 |
|
374 | 356 | ]]></format>
|
375 | 357 | </remarks>
|
@@ -400,10 +382,7 @@ For contracts originating from <xref:System.Text.Json.Serialization.Metadata.Def
|
400 | 382 | <remarks>
|
401 | 383 | <format type="text/markdown"><![CDATA[
|
402 | 384 |
|
403 |
| -## Remarks |
404 |
| -
|
405 |
| -For contracts originating from <xref:System.Text.Json.Serialization.Metadata.DefaultJsonTypeInfoResolver> or <xref:System.Text.Json.Serialization.JsonSerializerContext>, |
406 |
| - the value of this property will be mapped from <xref:System.Text.Json.Serialization.JsonNumberHandlingAttribute> annotations. |
| 385 | +For contracts originating from <xref:System.Text.Json.Serialization.Metadata.DefaultJsonTypeInfoResolver> or <xref:System.Text.Json.Serialization.JsonSerializerContext>, the value of this property will be mapped from <xref:System.Text.Json.Serialization.JsonNumberHandlingAttribute> annotations. |
407 | 386 |
|
408 | 387 | ]]></format>
|
409 | 388 | </remarks>
|
@@ -480,8 +459,7 @@ For contracts originating from <xref:System.Text.Json.Serialization.Metadata.Def
|
480 | 459 |
|
481 | 460 | ## Remarks
|
482 | 461 |
|
483 |
| -For contracts originating from <xref:System.Text.Json.Serialization.Metadata.DefaultJsonTypeInfoResolver> or <xref:System.Text.Json.Serialization.JsonSerializerContext>, |
484 |
| - the value of this property will be mapped from <xref:System.Text.Json.Serialization.JsonPropertyOrderAttribute> annotations. |
| 462 | +For contracts originating from <xref:System.Text.Json.Serialization.Metadata.DefaultJsonTypeInfoResolver> or <xref:System.Text.Json.Serialization.JsonSerializerContext>, the value of this property will be mapped from <xref:System.Text.Json.Serialization.JsonPropertyOrderAttribute> annotations. |
485 | 463 |
|
486 | 464 | ]]></format>
|
487 | 465 | </remarks>
|
@@ -581,8 +559,7 @@ The first parameter denotes the parent object, and the second parameter denotes
|
581 | 559 |
|
582 | 560 | Setting the predicate to `null` is equivalent to always serializing the property value.
|
583 | 561 |
|
584 |
| -For contracts originating from <xref:System.Text.Json.Serialization.Metadata.DefaultJsonTypeInfoResolver>, |
585 |
| - the value of <xref:System.Text.Json.Serialization.JsonIgnoreAttribute.Condition> will map to this predicate. |
| 562 | +For contracts originating from <xref:System.Text.Json.Serialization.Metadata.DefaultJsonTypeInfoResolver>, the value of <xref:System.Text.Json.Serialization.JsonIgnoreAttribute.Condition> will map to this predicate. |
586 | 563 |
|
587 | 564 | ]]></format>
|
588 | 565 | </remarks>
|
|
0 commit comments