1 type derived from XmlReaderDelegator
System.Runtime.Serialization (1)
System\Runtime\Serialization\Json\JsonReaderDelegator.cs (1)
15internal class JsonReaderDelegator : XmlReaderDelegator
13 instantiations of XmlReaderDelegator
System.Runtime.Serialization (13)
System\Runtime\Serialization\DataContractSerializer.cs (6)
321return ReadObjectHandleExceptions(new XmlReaderDelegator(reader), true /*verifyObjectName*/); 326return ReadObjectHandleExceptions(new XmlReaderDelegator(reader), verifyObjectName); 331return IsStartObjectHandleExceptions(new XmlReaderDelegator(reader)); 336return ReadObjectHandleExceptions(new XmlReaderDelegator(reader), verifyObjectName); 341return IsStartObjectHandleExceptions(new XmlReaderDelegator(reader)); 346return ReadObjectHandleExceptions(new XmlReaderDelegator(reader), verifyObjectName, dataContractResolver);
System\Runtime\Serialization\NetDataContractSerializer.cs (5)
396return ReadObjectHandleExceptions(new XmlReaderDelegator(reader), true /*verifyObjectName*/); 401return ReadObjectHandleExceptions(new XmlReaderDelegator(reader), verifyObjectName); 406return IsStartObjectHandleExceptions(new XmlReaderDelegator(reader)); 411return ReadObjectHandleExceptions(new XmlReaderDelegator(reader), verifyObjectName); 416return IsStartObjectHandleExceptions(new XmlReaderDelegator(reader));
System\Runtime\Serialization\XmlObjectSerializer.cs (1)
257return ReadObjectHandleExceptions(new XmlReaderDelegator(reader), true /*verifyObjectName*/);
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (1)
1085return new XmlReaderDelegator(xmlReader);
147 references to XmlReaderDelegator
System.Runtime.Serialization (147)
System\Runtime\Serialization\Attributes.cs (7)
60internal void Read(XmlReaderDelegator reader) 123void ReadId(XmlReaderDelegator reader) 132void ReadRef(XmlReaderDelegator reader) 141void ReadXsiNil(XmlReaderDelegator reader) 146void ReadArraySize(XmlReaderDelegator reader) 153void ReadXsiType(XmlReaderDelegator reader) 160void ReadFactoryType(XmlReaderDelegator reader)
System\Runtime\Serialization\ClassDataContract.cs (1)
444public override object ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context)
System\Runtime\Serialization\CollectionDataContract.cs (1)
1427public override object ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context)
System\Runtime\Serialization\DataContract.cs (1)
221public virtual object ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context)
System\Runtime\Serialization\DataContractSerializer.cs (3)
442internal override object InternalReadObject(XmlReaderDelegator xmlReader, bool verifyObjectName) 447internal override object InternalReadObject(XmlReaderDelegator xmlReader, bool verifyObjectName, DataContractResolver dataContractResolver) 494internal override bool InternalIsStartObject(XmlReaderDelegator reader)
System\Runtime\Serialization\EnumDataContract.cs (2)
381internal object ReadEnumValue(XmlReaderDelegator reader) 498public override object ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context)
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (4)
362internal static bool IsJsonLocalName(XmlReaderDelegator reader, string elementName) 372internal static object ReadJsonValue(DataContract contract, XmlReaderDelegator reader, XmlObjectSerializerReadContextComplexJson context) 397internal override bool InternalIsStartObject(XmlReaderDelegator reader) 407internal override object InternalReadObject(XmlReaderDelegator xmlReader, bool verifyObjectName)
System\Runtime\Serialization\Json\JsonByteArrayDataContract.cs (1)
20public override object ReadJsonValueCore(XmlReaderDelegator jsonReader, XmlObjectSerializerReadContextComplexJson context)
System\Runtime\Serialization\Json\JsonClassDataContract.cs (1)
105public override object ReadJsonValueCore(XmlReaderDelegator jsonReader, XmlObjectSerializerReadContextComplexJson context)
System\Runtime\Serialization\Json\JsonCollectionDataContract.cs (1)
117public override object ReadJsonValueCore(XmlReaderDelegator jsonReader, XmlObjectSerializerReadContextComplexJson context)
System\Runtime\Serialization\Json\JsonDataContract.cs (3)
79public object ReadJsonValue(XmlReaderDelegator jsonReader, XmlObjectSerializerReadContextComplexJson context) 87public virtual object ReadJsonValueCore(XmlReaderDelegator jsonReader, XmlObjectSerializerReadContextComplexJson context) 110protected static bool TryReadNullAtTopLevel(XmlReaderDelegator reader)
System\Runtime\Serialization\Json\JsonEnumDataContract.cs (1)
34public override object ReadJsonValueCore(XmlReaderDelegator jsonReader, XmlObjectSerializerReadContextComplexJson context)
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\Json\JsonObjectDataContract.cs (1)
19public override object ReadJsonValueCore(XmlReaderDelegator jsonReader, XmlObjectSerializerReadContextComplexJson context)
System\Runtime\Serialization\Json\JsonQNameDataContract.cs (1)
20public override object ReadJsonValueCore(XmlReaderDelegator jsonReader, XmlObjectSerializerReadContextComplexJson context)
System\Runtime\Serialization\Json\JsonStringDataContract.cs (1)
20public override object ReadJsonValueCore(XmlReaderDelegator jsonReader, XmlObjectSerializerReadContextComplexJson context)
System\Runtime\Serialization\Json\JsonUriDataContract.cs (1)
20public override object ReadJsonValueCore(XmlReaderDelegator jsonReader, XmlObjectSerializerReadContextComplexJson context)
System\Runtime\Serialization\Json\JsonXmlDataContract.cs (1)
19public override object ReadJsonValueCore(XmlReaderDelegator jsonReader, XmlObjectSerializerReadContextComplexJson context)
System\Runtime\Serialization\Json\XmlObjectSerializerReadContextComplexJson.cs (11)
53protected override void StartReadExtensionDataValue(XmlReaderDelegator xmlReader) 58protected override IDataNode ReadPrimitiveExtensionDataValue(XmlReaderDelegator xmlReader, string dataContractName, string dataContractNamespace) 83IDataNode ReadNumericalPrimitiveExtensionDataValue(XmlReaderDelegator xmlReader) 130protected override object ReadDataContractValue(DataContract dataContract, XmlReaderDelegator reader) 138internal override void ReadAttributes(XmlReaderDelegator xmlReader) 187public int GetJsonMemberIndex(XmlReaderDelegator xmlReader, XmlDictionaryString[] memberNames, int memberIndex, ExtensionDataObject extensionData) 215internal static bool TryGetJsonLocalName(XmlReaderDelegator xmlReader, out string name) 229public static string GetJsonMemberName(XmlReaderDelegator xmlReader) 282protected override bool IsReadingCollectionExtensionData(XmlReaderDelegator xmlReader) 287protected override bool IsReadingClassExtensionData(XmlReaderDelegator xmlReader) 292protected override XmlReaderDelegator CreateReaderDelegatorForReader(XmlReader xmlReader)
System\Runtime\Serialization\NetDataContractSerializer.cs (2)
419internal override object InternalReadObject(XmlReaderDelegator xmlReader, bool verifyObjectName) 434internal override bool InternalIsStartObject(XmlReaderDelegator reader)
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\SurrogateDataContract.cs (1)
82public override object ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context)
System\Runtime\Serialization\XmlDataContract.cs (1)
440public override object ReadXmlValue(XmlReaderDelegator xmlReader, 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)
System\Runtime\Serialization\XmlSerializableReader.cs (2)
14XmlReaderDelegator xmlReader; 24internal void BeginRead(XmlReaderDelegator xmlReader)