System\Runtime\Serialization\Json\JsonFormatGeneratorStatics.cs (7)
257isStartElementMethod0 = typeof(XmlReaderDelegator).GetMethod("IsStartElement", Globals.ScanAllMembers, null, new Type[] { }, null);
269isStartElementMethod2 = typeof(XmlReaderDelegator).GetMethod("IsStartElement", Globals.ScanAllMembers, null, new Type[] { typeof(XmlDictionaryString), typeof(XmlDictionaryString) }, null);
281localNameProperty = typeof(XmlReaderDelegator).GetProperty("LocalName", Globals.ScanAllMembers);
293namespaceProperty = typeof(XmlReaderDelegator).GetProperty("NamespaceProperty", Globals.ScanAllMembers);
317moveToContentMethod = typeof(XmlReaderDelegator).GetMethod("MoveToContent", Globals.ScanAllMembers);
329nodeTypeProperty = typeof(XmlReaderDelegator).GetProperty("NodeType", Globals.ScanAllMembers);
560getJsonMemberNameMethod = typeof(XmlObjectSerializerReadContextComplexJson).GetMethod("GetJsonMemberName", Globals.ScanAllMembers, null, new Type[] { typeof(XmlReaderDelegator) }, null);
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (4)
16delegate object JsonFormatClassReaderDelegate(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContextComplexJson context, XmlDictionaryString emptyDictionaryString, XmlDictionaryString[] memberNames);
17delegate object JsonFormatCollectionReaderDelegate(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContextComplexJson context, XmlDictionaryString emptyDictionaryString, XmlDictionaryString itemName, CollectionDataContract collectionContract);
18delegate void JsonFormatGetOnlyCollectionReaderDelegate(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContextComplexJson context, XmlDictionaryString emptyDictionaryString, XmlDictionaryString itemName, CollectionDataContract collectionContract);
978ilg.ConvertValue(typeof(XmlReaderDelegator), typeof(JsonReaderDelegator));
System\Runtime\Serialization\PrimitiveDataContract.cs (23)
116helper.XmlFormatReaderMethod = typeof(XmlReaderDelegator).GetMethod(ReadMethodName, Globals.ScanAllMembers);
133protected bool TryReadNullAtTopLevel(XmlReaderDelegator reader)
215public override object ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext context)
242public override object ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext context)
264public override object ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext context)
286public override object ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext context)
308public override object ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext context)
330public override object ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext context)
352public override object ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext context)
374public override object ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext context)
401public override object ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext context)
443public override object ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext context)
465public override object ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext context)
487public override object ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext context)
509public override object ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext context)
531public override object ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext context)
558public override object ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext context)
666public override object ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext context)
694public override object ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext context)
752public override object ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext context)
784public override object ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext context)
811public override object ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext context)
844public override object ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext context)
System\Runtime\Serialization\XmlFormatGeneratorStatics.cs (6)
155isStartElementMethod2 = typeof(XmlReaderDelegator).GetMethod("IsStartElement", Globals.ScanAllMembers, null, new Type[] { typeof(XmlDictionaryString), typeof(XmlDictionaryString) }, null);
168isStartElementMethod0 = typeof(XmlReaderDelegator).GetMethod("IsStartElement", Globals.ScanAllMembers, null, new Type[] { }, null);
220nodeTypeProperty = typeof(XmlReaderDelegator).GetProperty("NodeType", Globals.ScanAllMembers);
396internalDeserializeMethod = typeof(XmlObjectSerializerReadContext).GetMethod("InternalDeserialize", Globals.ScanAllMembers, null, new Type[] { typeof(XmlReaderDelegator), typeof(int), typeof(RuntimeTypeHandle), typeof(string), typeof(string) }, null);
474readIfNullOrRefMethod = typeof(XmlObjectSerializerReadContext).GetMethod("ReadIfNullOrRef", Globals.ScanAllMembers, null, new Type[] { typeof(XmlReaderDelegator), typeof(Type), typeof(bool) }, null);
682createUnexpectedStateExceptionMethod = typeof(XmlObjectSerializerReadContext).GetMethod("CreateUnexpectedStateException", Globals.ScanAllMembers, null, new Type[] { typeof(XmlNodeType), typeof(XmlReaderDelegator) }, null);
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (4)
22internal delegate object XmlFormatClassReaderDelegate(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, XmlDictionaryString[] memberNames, XmlDictionaryString[] memberNamespaces);
23internal delegate object XmlFormatCollectionReaderDelegate(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, XmlDictionaryString itemName, XmlDictionaryString itemNamespace, CollectionDataContract collectionContract);
24internal delegate void XmlFormatGetOnlyCollectionReaderDelegate(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, XmlDictionaryString itemName, XmlDictionaryString itemNamespace, CollectionDataContract collectionContract);
838ilg.Call(typeof(XmlReaderDelegator).GetMethod(readArrayMethod, Globals.ScanAllMembers));
System\Runtime\Serialization\XmlObjectSerializer.cs (10)
276internal virtual object InternalReadObject(XmlReaderDelegator reader, bool verifyObjectName)
281internal virtual object InternalReadObject(XmlReaderDelegator reader, bool verifyObjectName, DataContractResolver dataContractResolver)
286internal virtual bool InternalIsStartObject(XmlReaderDelegator reader)
292internal object ReadObjectHandleExceptions(XmlReaderDelegator reader, bool verifyObjectName)
297internal object ReadObjectHandleExceptions(XmlReaderDelegator reader, bool verifyObjectName, DataContractResolver dataContractResolver)
326internal bool IsStartObjectHandleExceptions(XmlReaderDelegator reader)
348internal bool IsStartElement(XmlReaderDelegator reader)
353internal bool IsRootElement(XmlReaderDelegator reader, DataContract contract, XmlDictionaryString name, XmlDictionaryString ns)
393internal static string TryAddLineInfo(XmlReaderDelegator reader, string errorMessage)
400internal static Exception CreateSerializationExceptionWithReaderDetails(string errorMessage, XmlReaderDelegator reader)
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (40)
29XmlReaderDelegator extensionDataReader;
126public virtual object InternalDeserialize(XmlReaderDelegator xmlReader, int id, RuntimeTypeHandle declaredTypeHandle, string name, string ns)
132internal virtual object InternalDeserialize(XmlReaderDelegator xmlReader, Type declaredType, string name, string ns)
138internal virtual object InternalDeserialize(XmlReaderDelegator xmlReader, Type declaredType, DataContract dataContract, string name, string ns)
145protected bool TryHandleNullOrRef(XmlReaderDelegator reader, Type declaredType, string name, string ns, ref object retObj)
170protected object InternalDeserialize(XmlReaderDelegator reader, string name, string ns, Type declaredType, ref DataContract dataContract)
250public static bool MoveToNextElement(XmlReaderDelegator xmlReader)
255public int GetMemberIndex(XmlReaderDelegator xmlReader, XmlDictionaryString[] memberNames, XmlDictionaryString[] memberNamespaces, int memberIndex, ExtensionDataObject extensionData)
266public int GetMemberIndexWithRequiredMembers(XmlReaderDelegator xmlReader, XmlDictionaryString[] memberNames, XmlDictionaryString[] memberNamespaces, int memberIndex, int requiredIndex, ExtensionDataObject extensionData)
281public static void ThrowRequiredMemberMissingException(XmlReaderDelegator xmlReader, int memberIndex, int requiredIndex, XmlDictionaryString[] memberNames)
295protected void HandleMemberNotFound(XmlReaderDelegator xmlReader, ExtensionDataObject extensionData, int memberIndex)
307internal void HandleUnknownElement(XmlReaderDelegator xmlReader, ExtensionDataObject extensionData, int memberIndex)
314public void SkipUnknownElement(XmlReaderDelegator xmlReader)
325public string ReadIfNullOrRef(XmlReaderDelegator xmlReader, Type memberType, bool isMemberTypeSerializable)
345internal virtual void ReadAttributes(XmlReaderDelegator xmlReader)
461public static void Read(XmlReaderDelegator xmlReader)
467internal static void ParseQualifiedName(string qname, XmlReaderDelegator xmlReader, out string name, out string ns, out string prefix)
507public void CheckEndOfArray(XmlReaderDelegator xmlReader, int arraySize, XmlDictionaryString itemName, XmlDictionaryString itemNamespace)
521internal object ReadIXmlSerializable(XmlReaderDelegator xmlReader, XmlDataContract xmlDataContract, bool isMemberType)
528internal static object ReadRootIXmlSerializable(XmlReaderDelegator xmlReader, XmlDataContract xmlDataContract, bool isMemberType)
533internal static object ReadIXmlSerializable(XmlSerializableReader xmlSerializableReader, XmlReaderDelegator xmlReader, XmlDataContract xmlDataContract, bool isMemberType)
563public SerializationInfo ReadSerializationInfo(XmlReaderDelegator xmlReader, Type type)
608ExtensionDataMember ReadExtensionDataMember(XmlReaderDelegator xmlReader, int memberIndex)
624public IDataNode ReadExtensionDataValue(XmlReaderDelegator xmlReader)
717protected virtual void StartReadExtensionDataValue(XmlReaderDelegator xmlReader)
721IDataNode ReadExtensionDataValue(XmlReaderDelegator xmlReader, string dataContractName, string dataContractNamespace)
755protected virtual IDataNode ReadPrimitiveExtensionDataValue(XmlReaderDelegator xmlReader, string dataContractName, string dataContractNamespace)
785IDataNode ReadUnknownPrimitiveData(XmlReaderDelegator xmlReader, Type type, string dataContractName, string dataContractNamespace)
792ClassDataNode ReadUnknownClassData(XmlReaderDelegator xmlReader, string dataContractName, string dataContractNamespace)
812CollectionDataNode ReadUnknownCollectionData(XmlReaderDelegator xmlReader, string dataContractName, string dataContractNamespace)
866ISerializableDataNode ReadUnknownISerializableData(XmlReaderDelegator xmlReader, string dataContractName, string dataContractNamespace)
897IDataNode ReadUnknownXmlData(XmlReaderDelegator xmlReader, string dataContractName, string dataContractNamespace)
945IDataNode ReadAndResolveUnknownXmlData(XmlReaderDelegator xmlReader, IDictionary<string, string> namespaces,
1037internal XmlReaderDelegator CreateReaderOverChildNodes(IList<XmlAttribute> xmlAttributes, IList<XmlNode> xmlChildNodes)
1040XmlReaderDelegator nodeReader = CreateReaderDelegatorForReader(new XmlNodeReader(wrapperElement));
1073public static Exception CreateUnexpectedStateException(XmlNodeType expectedState, XmlReaderDelegator xmlReader)
1078protected virtual object ReadDataContractValue(DataContract dataContract, XmlReaderDelegator reader)
1083protected virtual XmlReaderDelegator CreateReaderDelegatorForReader(XmlReader xmlReader)
1088protected virtual bool IsReadingCollectionExtensionData(XmlReaderDelegator xmlReader)
1093protected virtual bool IsReadingClassExtensionData(XmlReaderDelegator xmlReader)
System\Runtime\Serialization\XmlObjectSerializerReadContextComplex.cs (5)
109public override object InternalDeserialize(XmlReaderDelegator xmlReader, int declaredTypeID, RuntimeTypeHandle declaredTypeHandle, string name, string ns)
124internal override object InternalDeserialize(XmlReaderDelegator xmlReader, Type declaredType, string name, string ns)
139internal override object InternalDeserialize(XmlReaderDelegator xmlReader, Type declaredType, DataContract dataContract, string name, string ns)
154object InternalDeserializeInSharedTypeMode(XmlReaderDelegator xmlReader, int declaredTypeID, Type declaredType, string name, string ns)
192object InternalDeserializeWithSurrogate(XmlReaderDelegator xmlReader, Type declaredType, DataContract surrogateDataContract, string name, string ns)