Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
JsonCollectionDataContract.cs
Go to the documentation of this file.
3using System.Xml;
4
6
8{
10 {
11 private JsonFormatCollectionReaderDelegate _jsonFormatReaderDelegate;
12
13 private JsonFormatGetOnlyCollectionReaderDelegate _jsonFormatGetOnlyReaderDelegate;
14
15 private JsonFormatCollectionWriterDelegate _jsonFormatWriterDelegate;
16
18
19 internal JsonFormatCollectionReaderDelegate JsonFormatReaderDelegate
20 {
21 get
22 {
24 }
25 set
26 {
28 }
29 }
30
31 internal JsonFormatGetOnlyCollectionReaderDelegate JsonFormatGetOnlyReaderDelegate
32 {
33 get
34 {
36 }
37 set
38 {
40 }
41 }
42
43 internal JsonFormatCollectionWriterDelegate JsonFormatWriterDelegate
44 {
45 get
46 {
48 }
49 set
50 {
52 }
53 }
54
56
57 [RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
63 }
64
66
67 internal JsonFormatCollectionReaderDelegate JsonFormatReaderDelegate
68 {
69 [RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
70 get
71 {
73 {
74 lock (this)
75 {
77 {
81 }
82 }
83 }
85 }
86 }
87
88 internal JsonFormatGetOnlyCollectionReaderDelegate JsonFormatGetOnlyReaderDelegate
89 {
90 [RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
91 get
92 {
94 {
95 lock (this)
96 {
98 {
100 if (base.TraditionalDataContract.UnderlyingType.IsInterface && (kind == CollectionKind.Enumerable || kind == CollectionKind.Collection || kind == CollectionKind.GenericEnumerable))
101 {
103 }
107 }
108 }
109 }
111 }
112 }
113
114 internal JsonFormatCollectionWriterDelegate JsonFormatWriterDelegate
115 {
116 [RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
117 get
118 {
120 {
121 lock (this)
122 {
124 {
128 }
129 }
130 }
132 }
133 }
134
136
137 [RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
143
144 [RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
161
162 [RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
168}
static string GetClrTypeFullName(Type type)
override object ReadJsonValueCore(XmlReaderDelegator jsonReader, XmlObjectSerializerReadContextComplexJson context)
readonly JsonCollectionDataContractCriticalHelper _helper
JsonCollectionDataContract(CollectionDataContract traditionalDataContract)
override void WriteJsonValueCore(XmlWriterDelegator jsonWriter, object obj, XmlObjectSerializerWriteContextComplexJson context, RuntimeTypeHandle declaredTypeHandle)
JsonFormatGetOnlyCollectionReaderDelegate JsonFormatGetOnlyReaderDelegate
JsonFormatGetOnlyCollectionReaderDelegate GenerateGetOnlyCollectionReader(CollectionDataContract collectionContract)
JsonFormatCollectionReaderDelegate GenerateCollectionReader(CollectionDataContract collectionContract)
JsonFormatCollectionWriterDelegate GenerateCollectionWriter(CollectionDataContract collectionContract)
static readonly XmlDictionaryString itemDictionaryString
static string GetOnlyCollectionMustHaveAddMethod
Definition SR.cs:532
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
Definition SR.cs:7
static XmlDictionaryString Empty
delegate object JsonFormatCollectionReaderDelegate(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContextComplexJson context, XmlDictionaryString emptyDictionaryString, XmlDictionaryString itemName, CollectionDataContract collectionContract)
delegate void JsonFormatCollectionWriterDelegate(XmlWriterDelegator xmlWriter, object obj, XmlObjectSerializerWriteContextComplexJson context, CollectionDataContract dataContract)
delegate void JsonFormatGetOnlyCollectionReaderDelegate(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContextComplexJson context, XmlDictionaryString emptyDictionaryString, XmlDictionaryString itemName, CollectionDataContract collectionContract)