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

7.0-preview7_System.Text.Json.Serialization.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: 76568e54da4308f2b9440083014992e4c957faea (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
# System.Text.Json.Serialization

``` diff
 namespace System.Text.Json.Serialization {
-    [NullableAttribute((byte)0)]
-    [NullableContextAttribute((byte)1)]
-    public class JsonPolymorphicTypeConfiguration : ICollection<(Type, object?)>, IEnumerable, IEnumerable<(Type, object?)> {
-        public JsonPolymorphicTypeConfiguration(Type baseType);
-        public Type BaseType { get; }
-        public bool IgnoreUnrecognizedTypeDiscriminators { get; set; }
-        int ICollection<(Type, object?)>.Count { get; }
-        bool ICollection<(Type, object?)>.IsReadOnly { get; }
-        [NullableAttribute((byte)2)]
-        public string? TypeDiscriminatorPropertyName { [NullableContextAttribute((byte)2)] get; [NullableContextAttribute((byte)2)] set; }
-        public JsonUnknownDerivedTypeHandling UnknownDerivedTypeHandling { get; set; }
-        void ICollection<(Type, object?)>.Add((Type DerivedType, object TypeDiscriminator) item);
-        void ICollection<(Type, object?)>.Clear();
-        bool ICollection<(Type, object?)>.Contains((Type DerivedType, object TypeDiscriminator) item);
-        void ICollection<(Type, object?)>.CopyTo((Type DerivedType, object TypeDiscriminator)[] array, int arrayIndex);
-        bool ICollection<(Type, object?)>.Remove((Type DerivedType, object TypeDiscriminator) item);
-        IEnumerator<(Type DerivedType, object TypeDiscriminator)> IEnumerable<(Type, object?)>.GetEnumerator();
-        IEnumerator IEnumerable.GetEnumerator();
-        public JsonPolymorphicTypeConfiguration WithDerivedType(Type derivedType);
-        public JsonPolymorphicTypeConfiguration WithDerivedType(Type derivedType, int typeDiscriminator);
-        public JsonPolymorphicTypeConfiguration WithDerivedType(Type derivedType, string typeDiscriminator);
-    }
-    [NullableAttribute((byte)0)]
-    [NullableContextAttribute((byte)1)]
-    public class JsonPolymorphicTypeConfiguration<TBaseType> : JsonPolymorphicTypeConfiguration where TBaseType : class {
-        public JsonPolymorphicTypeConfiguration();
-        public JsonPolymorphicTypeConfiguration<TBaseType> WithDerivedType<TDerivedType>() where TDerivedType : TBaseType;
-        public JsonPolymorphicTypeConfiguration<TBaseType> WithDerivedType<TDerivedType>(int typeDiscriminator) where TDerivedType : TBaseType;
-        public JsonPolymorphicTypeConfiguration<TBaseType> WithDerivedType<TDerivedType>(string typeDiscriminator) where TDerivedType : TBaseType;
-    }
 }
```