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

7.0-rc1_System.Runtime.Serialization.md « Microsoft.NETCore.App « rc1 « api-diff « preview « 7.0 « release-notes - github.com/dotnet/core.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 91a730bcd59a1e6459689d60c7b8d0a9aa1b8966 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# System.Runtime.Serialization

``` diff
 namespace System.Runtime.Serialization {
     public class ExportOptions {
+        public ISerializationSurrogateProvider DataContractSurrogate { get; set; }
     }
+    public interface ISerializationSurrogateProvider2 : ISerializationSurrogateProvider {
+        object? GetCustomDataToExport(MemberInfo memberInfo, Type dataContractType);
+        object? GetCustomDataToExport(Type runtimeType, Type dataContractType);
+        void GetKnownCustomDataTypes(Collection<Type> customDataTypes);
+        Type? GetReferencedTypeOnImport(string typeName, string typeNamespace, object? customData);
+    }
 }
```