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

7.0-preview7_System.Text.Json.Serialization.Metadata.md « Microsoft.NETCore.App « preview7 « api-diff « preview « 7.0 « release-notes - github.com/dotnet/core.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 08df8ec6b5b2cdbbaba905e685c71265dd43758b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# System.Text.Json.Serialization.Metadata

``` diff
 namespace System.Text.Json.Serialization.Metadata {
     [NullableAttribute((byte)0)]
     [NullableContextAttribute((byte)1)]
     public class DefaultJsonTypeInfoResolver : IJsonTypeInfoResolver {
-        public IList<Action<JsonTypeInfo>> Modifiers { [CompilerGeneratedAttribute] get; }
+        public IList<Action<JsonTypeInfo>> Modifiers { get; }
     }
+    [NullableAttribute((byte)0)]
+    [NullableContextAttribute((byte)1)]
+    [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+    public readonly struct JsonDerivedType {
+        public JsonDerivedType(Type derivedType);
+        public JsonDerivedType(Type derivedType, int typeDiscriminator);
+        public JsonDerivedType(Type derivedType, string typeDiscriminator);
+        public Type DerivedType { get; }
+        [NullableAttribute((byte)2)]
+        public object? TypeDiscriminator { [NullableContextAttribute((byte)2)] get; }
+    }
     [EditorBrowsableAttribute(EditorBrowsableState.Never)]
     [NullableAttribute((byte)0)]
     [NullableContextAttribute((byte)1)]
     public static class JsonMetadataServices {
-        public static JsonConverter<object> ObjectConverter { get; }
+        [NullableAttribute(new byte[]{ (byte)1, (byte)2})]
+        [NullableAttribute(new byte[]{ (byte)1, (byte)2})]
+        public static JsonConverter<object?> ObjectConverter { get; }
     }
+    [NullableAttribute((byte)0)]
+    [NullableContextAttribute((byte)1)]
+    public class JsonPolymorphismOptions {
+        public JsonPolymorphismOptions();
+        public IList<JsonDerivedType> DerivedTypes { get; }
+        public bool IgnoreUnrecognizedTypeDiscriminators { get; set; }
+        [AllowNullAttribute]
+        public string TypeDiscriminatorPropertyName { get; set; }
+        public JsonUnknownDerivedTypeHandling UnknownDerivedTypeHandling { get; set; }
+    }
     [NullableAttribute((byte)0)]
     [NullableContextAttribute((byte)1)]
     public abstract class JsonPropertyInfo {
+        [NullableAttribute((byte)2)]
+        public ICustomAttributeProvider? AttributeProvider { [NullableContextAttribute((byte)2)] get; [NullableContextAttribute((byte)2)] set; }
+        public bool IsExtensionData { get; set; }
+        public int Order { get; set; }
     }
     [NullableAttribute((byte)0)]
     [NullableContextAttribute((byte)1)]
     public abstract class JsonTypeInfo {
+        [NullableAttribute(new byte[]{ (byte)2, (byte)1})]
+        [NullableAttribute(new byte[]{ (byte)2, (byte)1})]
+        [NullableAttribute(new byte[]{ (byte)2, (byte)1})]
+        public Action<object>? OnDeserialized { get; set; }
+        [NullableAttribute(new byte[]{ (byte)2, (byte)1})]
+        [NullableAttribute(new byte[]{ (byte)2, (byte)1})]
+        [NullableAttribute(new byte[]{ (byte)2, (byte)1})]
+        public Action<object>? OnDeserializing { get; set; }
+        [NullableAttribute(new byte[]{ (byte)2, (byte)1})]
+        [NullableAttribute(new byte[]{ (byte)2, (byte)1})]
+        [NullableAttribute(new byte[]{ (byte)2, (byte)1})]
+        public Action<object>? OnSerialized { get; set; }
+        [NullableAttribute(new byte[]{ (byte)2, (byte)1})]
+        [NullableAttribute(new byte[]{ (byte)2, (byte)1})]
+        [NullableAttribute(new byte[]{ (byte)2, (byte)1})]
+        public Action<object>? OnSerializing { get; set; }
+        [NullableAttribute((byte)2)]
+        public JsonPolymorphismOptions? PolymorphismOptions { [NullableContextAttribute((byte)2)] get; [NullableContextAttribute((byte)2)] set; }
-        public JsonPropertyInfo CreateJsonPropertyInfo(Type propertyType, string name);
+        [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 and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+        public JsonPropertyInfo CreateJsonPropertyInfo(Type propertyType, string name);
-        [RequiresDynamicCodeAttribute("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use generic overload or System.Text.Json source generation for native AOT applications.")]
-        [RequiresUnreferencedCodeAttribute("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use generic overload or System.Text.Json source generation for native AOT applications.")]
-        public static JsonTypeInfo CreateJsonTypeInfo(Type type, JsonSerializerOptions options);
+        [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 and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+        public static JsonTypeInfo CreateJsonTypeInfo(Type type, JsonSerializerOptions options);
-        [RequiresDynamicCodeAttribute("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use generic overload or System.Text.Json source generation for native AOT applications.")]
-        [RequiresUnreferencedCodeAttribute("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use generic overload or System.Text.Json source generation for native AOT applications.")]
-        public static JsonTypeInfo<T> CreateJsonTypeInfo<T>(JsonSerializerOptions options);
+        [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 and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+        public static JsonTypeInfo<T> CreateJsonTypeInfo<T>(JsonSerializerOptions options);
     }
 }
```