Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/core.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'release-notes/7.0/preview/api-diff/preview7/Microsoft.NETCore.App/7.0-preview7_System.Text.Json.md')
-rw-r--r--release-notes/7.0/preview/api-diff/preview7/Microsoft.NETCore.App/7.0-preview7_System.Text.Json.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/release-notes/7.0/preview/api-diff/preview7/Microsoft.NETCore.App/7.0-preview7_System.Text.Json.md b/release-notes/7.0/preview/api-diff/preview7/Microsoft.NETCore.App/7.0-preview7_System.Text.Json.md
new file mode 100644
index 00000000..213c4b57
--- /dev/null
+++ b/release-notes/7.0/preview/api-diff/preview7/Microsoft.NETCore.App/7.0-preview7_System.Text.Json.md
@@ -0,0 +1,22 @@
+# System.Text.Json
+
+``` diff
+ namespace System.Text.Json {
+ [NullableAttribute((byte)0)]
+ [NullableContextAttribute((byte)2)]
+ public sealed class JsonSerializerOptions {
+- [NullableAttribute((byte)1)]
+- public static JsonSerializerOptions Default { [NullableContextAttribute((byte)1)] get; }
++ [NullableAttribute((byte)1)]
++ public static JsonSerializerOptions Default { [NullableContextAttribute((byte)1), RequiresDynamicCodeAttribute("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications."), RequiresUnreferencedCodeAttribute("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] get; }
+- [NullableAttribute((byte)1)]
+- public IList<JsonPolymorphicTypeConfiguration> PolymorphicTypeConfigurations { [NullableContextAttribute((byte)1)] get; }
+- [NullableAttribute((byte)1)]
+- public IJsonTypeInfoResolver TypeInfoResolver { [NullableContextAttribute((byte)1), RequiresDynamicCodeAttribute("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications."), RequiresUnreferencedCodeAttribute("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] get; [NullableContextAttribute((byte)1)] set; }
++ public IJsonTypeInfoResolver TypeInfoResolver { get; set; }
++ [NullableContextAttribute((byte)1)]
++ public JsonTypeInfo GetTypeInfo(Type type);
+ }
+ }
+```
+