Skip to content

Commit 2388add

Browse files
Update source-generation-modes.md (#40052)
1 parent 1fa506f commit 2388add

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/standard/serialization/system-text-json/source-generation-modes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ The following table shows which attributes are supported by fast-path serializat
8181
| <xref:System.Text.Json.Serialization.JsonNumberHandlingAttribute> ||
8282
| <xref:System.Text.Json.Serialization.JsonPolymorphicAttribute> | ✔️ |
8383
| <xref:System.Text.Json.Serialization.JsonPropertyNameAttribute> | ✔️ |
84-
| <xref:System.Text.Json.Serialization.JsonPropertyOrderAttribute> | |
84+
| <xref:System.Text.Json.Serialization.JsonPropertyOrderAttribute> | ✔️ |
8585
| <xref:System.Text.Json.Serialization.JsonRequiredAttribute> | ✔️ |
8686

8787
If a non-supported option or attribute is specified for a type, the serializer falls back to metadata mode, assuming that the source generator has been configured to generate metadata. In that case, the optimized code isn't used when serializing that type but may be used for other types. Therefore it's important to do performance testing with your options and workloads to determine how much benefit you can actually get from serialization-optimization mode. Also, the ability to fall back to `JsonSerializer` code requires metadata-collection mode. If you select only serialization-optimization mode, serialization might fail for types or options that need to fall back to `JsonSerializer` code.

0 commit comments

Comments
 (0)