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

◆ GetCollectionReadItemDelegate()

CollectionReadItemDelegate System.Runtime.Serialization.ReflectionReader.GetCollectionReadItemDelegate ( CollectionDataContract collectionContract)
inlineprivateinherited

Definition at line 104 of file ReflectionReader.cs.

105 {
106 if (collectionContract.Kind == CollectionKind.Dictionary || collectionContract.Kind == CollectionKind.GenericDictionary)
107 {
109 }
111 [RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
112 object GetReadDictionaryItemDelegate(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, CollectionDataContract collectionContract, Type itemType, string itemName, string itemNs)
113 {
115 }
116 }
object ReflectionReadDictionaryItem(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, CollectionDataContract collectionContract)
CollectionReadItemDelegate GetReflectionReadValueDelegate(Type type)

References System.Collections.Generic.Dictionary< TKey, TValue >.Dictionary(), System.Runtime.Serialization.Dictionary, System.Runtime.Serialization.ReflectionReader.GetReflectionReadValueDelegate(), and System.Runtime.Serialization.ReflectionReader.ReflectionReadDictionaryItem().

Referenced by System.Runtime.Serialization.ReflectionReader.ReadCollectionItems().