-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
System.Runtime.Serialization.Primitives.cs
96 lines (95 loc) · 5.68 KB
/
System.Runtime.Serialization.Primitives.cs
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
90
91
92
93
94
95
96
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// ------------------------------------------------------------------------------
// Changes to this file must follow the https://aka.ms/api-review process.
// ------------------------------------------------------------------------------
namespace System.Runtime.Serialization
{
[System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.Struct, Inherited=false, AllowMultiple=false)]
public sealed partial class CollectionDataContractAttribute : System.Attribute
{
public CollectionDataContractAttribute() { }
public bool IsItemNameSetExplicitly { get { throw null; } }
public bool IsKeyNameSetExplicitly { get { throw null; } }
public bool IsNameSetExplicitly { get { throw null; } }
public bool IsNamespaceSetExplicitly { get { throw null; } }
public bool IsReference { get { throw null; } set { } }
public bool IsReferenceSetExplicitly { get { throw null; } }
public bool IsValueNameSetExplicitly { get { throw null; } }
public string? ItemName { get { throw null; } set { } }
public string? KeyName { get { throw null; } set { } }
public string? Name { get { throw null; } set { } }
public string? Namespace { get { throw null; } set { } }
public string? ValueName { get { throw null; } set { } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Module, Inherited=false, AllowMultiple=true)]
public sealed partial class ContractNamespaceAttribute : System.Attribute
{
public ContractNamespaceAttribute(string contractNamespace) { }
public string? ClrNamespace { get { throw null; } set { } }
public string ContractNamespace { get { throw null; } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.Enum | System.AttributeTargets.Struct, Inherited=false, AllowMultiple=false)]
public sealed partial class DataContractAttribute : System.Attribute
{
public DataContractAttribute() { }
public bool IsNameSetExplicitly { get { throw null; } }
public bool IsNamespaceSetExplicitly { get { throw null; } }
public bool IsReference { get { throw null; } set { } }
public bool IsReferenceSetExplicitly { get { throw null; } }
public string? Name { get { throw null; } set { } }
public string? Namespace { get { throw null; } set { } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Field | System.AttributeTargets.Property, Inherited=false, AllowMultiple=false)]
public sealed partial class DataMemberAttribute : System.Attribute
{
public DataMemberAttribute() { }
public bool EmitDefaultValue { get { throw null; } set { } }
public bool IsNameSetExplicitly { get { throw null; } }
public bool IsRequired { get { throw null; } set { } }
public string? Name { get { throw null; } set { } }
public int Order { get { throw null; } set { } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Field, Inherited=false, AllowMultiple=false)]
public sealed partial class EnumMemberAttribute : System.Attribute
{
public EnumMemberAttribute() { }
public bool IsValueSetExplicitly { get { throw null; } }
public string? Value { get { throw null; } set { } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Field | System.AttributeTargets.Property, Inherited=false, AllowMultiple=false)]
public sealed partial class IgnoreDataMemberAttribute : System.Attribute
{
public IgnoreDataMemberAttribute() { }
}
public partial class InvalidDataContractException : System.Exception
{
public InvalidDataContractException() { }
[System.ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId = "SYSLIB0051", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
protected InvalidDataContractException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
public InvalidDataContractException(string? message) { }
public InvalidDataContractException(string? message, System.Exception? innerException) { }
}
public partial interface ISerializationSurrogateProvider
{
object GetDeserializedObject(object obj, System.Type targetType);
object GetObjectToSerialize(object obj, System.Type targetType);
System.Type GetSurrogateType(System.Type type);
}
public interface ISerializationSurrogateProvider2 : ISerializationSurrogateProvider
{
object? GetCustomDataToExport(Reflection.MemberInfo memberInfo, Type dataContractType);
object? GetCustomDataToExport(Type runtimeType, Type dataContractType);
void GetKnownCustomDataTypes(Collections.ObjectModel.Collection<Type> customDataTypes);
Type? GetReferencedTypeOnImport(string typeName, string typeNamespace, object? customData);
}
[System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.Struct, Inherited=true, AllowMultiple=true)]
public sealed partial class KnownTypeAttribute : System.Attribute
{
public KnownTypeAttribute(string methodName) { }
public KnownTypeAttribute(System.Type type) { }
public string? MethodName { get { throw null; } }
public System.Type? Type { get { throw null; } }
}
}