Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ JsonFormatWriterDelegate

JsonFormatCollectionWriterDelegate System.Runtime.Serialization.Json.JsonCollectionDataContract.JsonFormatWriterDelegate
getpackage

Definition at line 114 of file JsonCollectionDataContract.cs.

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 {
125 JsonFormatCollectionWriterDelegate jsonFormatWriterDelegate = ((DataContractSerializer.Option != SerializationOption.ReflectionOnly) ? new JsonFormatWriterGenerator().GenerateCollectionWriter(TraditionalCollectionDataContract) : new JsonFormatCollectionWriterDelegate(new ReflectionJsonFormatWriter().ReflectionWriteCollection));
128 }
129 }
130 }
132 }
133 }
readonly JsonCollectionDataContractCriticalHelper _helper
delegate void JsonFormatCollectionWriterDelegate(XmlWriterDelegator xmlWriter, object obj, XmlObjectSerializerWriteContextComplexJson context, CollectionDataContract dataContract)

Referenced by System.Runtime.Serialization.Json.JsonCollectionDataContract.WriteJsonValueCore().