1 type derived from XmlObjectSerializerReadContext
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\XmlObjectSerializerReadContextComplex.cs (1)
12internal class XmlObjectSerializerReadContextComplex : XmlObjectSerializerReadContext
1 instantiation of XmlObjectSerializerReadContext
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (1)
73: new XmlObjectSerializerReadContext(serializer, rootTypeDataContract, dataContractResolver);
119 references to XmlObjectSerializerReadContext
System.Private.DataContractSerialization (119)
System\Runtime\Serialization\Attributes.cs (2)
137XmlObjectSerializerReadContext.ParseQualifiedName(xsiTypeString, reader, out XsiTypeName, out XsiTypeNamespace, out XsiTypePrefix); 144XmlObjectSerializerReadContext.ParseQualifiedName(factoryTypeString, reader, out FactoryTypeName, out FactoryTypeNamespace, out FactoryTypePrefix);
System\Runtime\Serialization\ClassDataContract.cs (1)
391internal override object? ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext? context)
System\Runtime\Serialization\CollectionDataContract.cs (1)
1567internal override object? ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext? context)
System\Runtime\Serialization\DataContract.cs (2)
176internal virtual object? ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext? context) 188internal virtual object ReadXmlElement(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context)
System\Runtime\Serialization\DataContractSerializer.cs (3)
498return XmlObjectSerializerReadContext.ReadRootIXmlSerializable(xmlReader, (contract as XmlDataContract)!, false /*isMemberType*/); 501XmlObjectSerializerReadContext context = XmlObjectSerializerReadContext.CreateContext(this, contract, dataContractResolver);
System\Runtime\Serialization\EnumDataContract.cs (1)
453internal override object ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext? context)
System\Runtime\Serialization\ExtensionDataReader.cs (3)
51private readonly XmlObjectSerializerReadContext _context; 64internal ExtensionDataReader(XmlObjectSerializerReadContext context) 612XmlElement wrapperElement = XmlObjectSerializerReadContext.CreateWrapperXmlElement(dataNode.OwnerDocument,
System\Runtime\Serialization\Json\JsonDataContract.cs (1)
110protected static object HandleReadValue(object obj, XmlObjectSerializerReadContext context)
System\Runtime\Serialization\Json\JsonReaderDelegator.cs (2)
209internal override bool TryReadDateTimeArray(XmlObjectSerializerReadContext context, 216internal bool TryReadJsonDateTimeArray(XmlObjectSerializerReadContext context,
System\Runtime\Serialization\Json\ReflectionJsonFormatReader.cs (6)
62protected override void ReflectionReadMembers(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, XmlDictionaryString[] memberNames, XmlDictionaryString[]? memberNamespaces, ClassDataContract classContract, ref object obj) 85if (!XmlObjectSerializerReadContext.MoveToNextElement(xmlReader)) 117protected override object? ReflectionReadDictionaryItem(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, CollectionDataContract collectionContract) 130protected override bool ReflectionReadSpecialCollection(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, CollectionDataContract collectionContract, object? resultCollection) 147private void ReadSimpleDictionary(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, CollectionDataContract collectionContract, Type keyValueType, object? dictionary) 196throw XmlObjectSerializerReadContext.CreateUnexpectedStateException(XmlNodeType.Element, xmlReader);
System\Runtime\Serialization\PrimitiveDataContract.cs (23)
104protected static object HandleReadValue(object obj, XmlObjectSerializerReadContext context) 191internal override object? ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext? context) 228internal override object? ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext? context) 260internal override object? ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext? context) 292internal override object? ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext? context) 324internal override object? ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext? context) 356internal override object? ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext? context) 410internal override object? ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext? context) 441internal override object? ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext? context) 473internal override object? ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext? context) 509internal override object? ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext? context) 566internal override object? ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext? context) 598internal override object? ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext? context) 630internal override object? ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext? context) 662internal override object? ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext? context) 694internal override object? ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext? context) 730internal override object? ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext? context) 868internal override object? ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext? context) 908internal override object? ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext? context) 961internal override object? ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext? context) 1002internal override object? ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext? context) 1039internal override object? ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext? context) 1079internal override object? ReadXmlValue(XmlReaderDelegator reader, XmlObjectSerializerReadContext? context)
System\Runtime\Serialization\ReflectionReader.cs (24)
20private delegate object? CollectionReadItemDelegate(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, CollectionDataContract collectionContract, Type itemType, string itemName, string itemNs); 35public object ReflectionReadClass(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext? context, XmlDictionaryString[]? memberNames, XmlDictionaryString[]? memberNamespaces, ClassDataContract classContract) 69public void ReflectionReadGetOnlyCollection(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, XmlDictionaryString collectionItemName, XmlDictionaryString collectionItemNamespace, CollectionDataContract collectionContract) 82XmlObjectSerializerReadContext.ThrowNullValueReturnedForGetOnlyCollectionException(collectionContract.UnderlyingType); 92public object ReflectionReadCollection(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, XmlDictionaryString collectionItemName, XmlDictionaryString collectionItemNamespace, CollectionDataContract collectionContract) 99private object ReflectionReadCollectionCore(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, XmlDictionaryString collectionItemName, XmlDictionaryString collectionItemNamespace, CollectionDataContract collectionContract) 140object? GetReadDictionaryItemDelegate(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, CollectionDataContract collectionContract, Type itemType, string itemName, string itemNs) 148private object ReadCollectionItems(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, XmlDictionaryString collectionItemName, XmlDictionaryString collectionItemNamespace, CollectionDataContract collectionContract, object resultCollection, bool isReadOnlyCollection) 175throw XmlObjectSerializerReadContext.CreateUnexpectedStateException(XmlNodeType.Element, xmlReader); 195protected abstract void ReflectionReadMembers(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, XmlDictionaryString[] memberNames, XmlDictionaryString[]? memberNamespaces, ClassDataContract classContract, ref object obj); 199protected abstract object? ReflectionReadDictionaryItem(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, CollectionDataContract collectionContract); 206protected virtual bool ReflectionReadSpecialCollection(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, CollectionDataContract collectionContract, object? resultCollection) 225protected void ReflectionReadMember(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, ClassDataContract classContract, ref object obj, int memberIndex, DataMember[] members) 249protected object? ReflectionReadValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, Type type, string name, string ns, PrimitiveDataContract? primitiveContractForOriginalType = null) 277private object? ReadItemOfPrimitiveType(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, Type type, string name, string ns, PrimitiveDataContract? primitiveContract, int nullables) 332private static object ReadISerializable(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, ClassDataContract classContract) 365object? GetReadItemOfPrimitiveTypeDelegate(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, CollectionDataContract collectionContract, Type itemType, string itemName, string itemNs) 383private object? ReflectionReadValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, DataMember dataMember, string ns) 393private object? ReflectionInternalDeserialize(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, CollectionDataContract? collectionContract, Type type, string name, string ns) 398private static void InvokeOnDeserializing(XmlObjectSerializerReadContext context, ClassDataContract classContract, object obj) 409private static void InvokeOnDeserialized(XmlObjectSerializerReadContext context, ClassDataContract classContract, object obj) 535XmlObjectSerializerReadContext.ThrowArrayExceededSizeException(arraySize, collectionContract.UnderlyingType); 546resultCollection = XmlObjectSerializerReadContext.EnsureArraySize((T[])resultCollection, index); 626private static bool ReflectionTryReadPrimitiveArray(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, XmlDictionaryString collectionItemName, XmlDictionaryString collectionItemNamespace, Type itemType, int arraySize, [NotNullWhen(true)] out object? resultArray)
System\Runtime\Serialization\ReflectionXmlFormatReader.cs (6)
32public object ReflectionReadClass(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext? context, XmlDictionaryString[]? memberNames, XmlDictionaryString[]? memberNamespaces) 44public object ReflectionReadCollection(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, XmlDictionaryString itemName, XmlDictionaryString itemNamespace, CollectionDataContract collectionContract) 51public void ReflectionReadGetOnlyCollection(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, XmlDictionaryString itemName, XmlDictionaryString itemNs, CollectionDataContract collectionContract) 61protected override void ReflectionReadMembers(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, XmlDictionaryString[] memberNames, XmlDictionaryString[]? memberNamespaces, ClassDataContract classContract, ref object obj) 85if (!XmlObjectSerializerReadContext.MoveToNextElement(xmlReader)) 124protected override object? ReflectionReadDictionaryItem(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, CollectionDataContract collectionContract)
System\Runtime\Serialization\XmlDataContract.cs (2)
419internal override object? ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext? context) 424o = XmlObjectSerializerReadContext.ReadRootIXmlSerializable(xmlReader, this, true /*isMemberType*/);
System\Runtime\Serialization\XmlFormatGeneratorStatics.cs (26)
251s_getCollectionMemberMethod = typeof(XmlObjectSerializerReadContext).GetMethod("GetCollectionMember", Globals.ScanAllMembers); 265s_storeCollectionMemberInfoMethod = typeof(XmlObjectSerializerReadContext).GetMethod("StoreCollectionMemberInfo", Globals.ScanAllMembers, new Type[] { typeof(object) }); 279s_resetCollectionMemberInfoMethod = typeof(XmlObjectSerializerReadContext).GetMethod("ResetCollectionMemberInfo", Globals.ScanAllMembers, Type.EmptyTypes); 321s_throwNullValueReturnedForGetOnlyCollectionExceptionMethod = typeof(XmlObjectSerializerReadContext).GetMethod("ThrowNullValueReturnedForGetOnlyCollectionException", Globals.ScanAllMembers); 335s_throwArrayExceededSizeExceptionMethod = typeof(XmlObjectSerializerReadContext).GetMethod("ThrowArrayExceededSizeException", Globals.ScanAllMembers); 364s_internalDeserializeMethod = typeof(XmlObjectSerializerReadContext).GetMethod("InternalDeserialize", Globals.ScanAllMembers, new Type[] { typeof(XmlReaderDelegator), typeof(int), typeof(RuntimeTypeHandle), typeof(string), typeof(string) }); 378s_moveToNextElementMethod = typeof(XmlObjectSerializerReadContext).GetMethod("MoveToNextElement", Globals.ScanAllMembers); 393s_getMemberIndexMethod = typeof(XmlObjectSerializerReadContext).GetMethod("GetMemberIndex", Globals.ScanAllMembers); 408s_getMemberIndexWithRequiredMembersMethod = typeof(XmlObjectSerializerReadContext).GetMethod("GetMemberIndexWithRequiredMembers", Globals.ScanAllMembers); 422s_throwRequiredMemberMissingExceptionMethod = typeof(XmlObjectSerializerReadContext).GetMethod("ThrowRequiredMemberMissingException", Globals.ScanAllMembers); 436s_skipUnknownElementMethod = typeof(XmlObjectSerializerReadContext).GetMethod("SkipUnknownElement", Globals.ScanAllMembers); 451s_readIfNullOrRefMethod = typeof(XmlObjectSerializerReadContext).GetMethod("ReadIfNullOrRef", Globals.ScanAllMembers, new Type[] { typeof(XmlReaderDelegator), typeof(Type), typeof(bool) }); 465s_readAttributesMethod = typeof(XmlObjectSerializerReadContext).GetMethod("ReadAttributes", Globals.ScanAllMembers); 479s_resetAttributesMethod = typeof(XmlObjectSerializerReadContext).GetMethod("ResetAttributes", Globals.ScanAllMembers); 493s_getObjectIdMethod = typeof(XmlObjectSerializerReadContext).GetMethod("GetObjectId", Globals.ScanAllMembers); 507s_getArraySizeMethod = typeof(XmlObjectSerializerReadContext).GetMethod("GetArraySize", Globals.ScanAllMembers); 521s_addNewObjectMethod = typeof(XmlObjectSerializerReadContext).GetMethod("AddNewObject", Globals.ScanAllMembers); 535s_addNewObjectWithIdMethod = typeof(XmlObjectSerializerReadContext).GetMethod("AddNewObjectWithId", Globals.ScanAllMembers); 549s_replaceDeserializedObjectMethod = typeof(XmlObjectSerializerReadContext).GetMethod("ReplaceDeserializedObject", Globals.ScanAllMembers); 564s_getExistingObjectMethod = typeof(XmlObjectSerializerReadContext).GetMethod("GetExistingObject", Globals.ScanAllMembers); 578s_getRealObjectMethod = typeof(XmlObjectSerializerReadContext).GetMethod("GetRealObject", Globals.ScanAllMembers); 592s_ensureArraySizeMethod = typeof(XmlObjectSerializerReadContext).GetMethod("EnsureArraySize", Globals.ScanAllMembers); 606s_trimArraySizeMethod = typeof(XmlObjectSerializerReadContext).GetMethod("TrimArraySize", Globals.ScanAllMembers); 620s_checkEndOfArrayMethod = typeof(XmlObjectSerializerReadContext).GetMethod("CheckEndOfArray", Globals.ScanAllMembers); 649s_readSerializationInfoMethod = typeof(XmlObjectSerializerReadContext).GetMethod("ReadSerializationInfo", Globals.ScanAllMembers); 663s_createUnexpectedStateExceptionMethod = typeof(XmlObjectSerializerReadContext).GetMethod("CreateUnexpectedStateException", Globals.ScanAllMembers, new Type[] { typeof(XmlNodeType), typeof(XmlReaderDelegator) });
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (3)
21internal delegate object? XmlFormatClassReaderDelegate(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext? context, XmlDictionaryString[]? memberNames, XmlDictionaryString[]? memberNamespaces); 22internal delegate object XmlFormatCollectionReaderDelegate(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, XmlDictionaryString itemName, XmlDictionaryString itemNamespace, CollectionDataContract collectionContract); 23internal delegate void XmlFormatGetOnlyCollectionReaderDelegate(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, XmlDictionaryString itemName, XmlDictionaryString itemNamespace, CollectionDataContract collectionContract);
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (1)
69internal static XmlObjectSerializerReadContext CreateContext(DataContractSerializer serializer, DataContract rootTypeDataContract, DataContractResolver? dataContractResolver)
System\Runtime\Serialization\XmlReaderDelegator.cs (10)
779XmlObjectSerializerReadContext.ParseQualifiedName(str, this, out name, out ns, out _); 783private static void CheckExpectedArrayLength(XmlObjectSerializerReadContext context, int arrayLength) 788protected int GetArrayLengthQuota(XmlObjectSerializerReadContext context) 802internal bool TryReadBooleanArray(XmlObjectSerializerReadContext context, 832internal virtual bool TryReadDateTimeArray(XmlObjectSerializerReadContext context, 862internal bool TryReadDecimalArray(XmlObjectSerializerReadContext context, 892internal bool TryReadInt32Array(XmlObjectSerializerReadContext context, 922internal bool TryReadInt64Array(XmlObjectSerializerReadContext context, 952internal bool TryReadSingleArray(XmlObjectSerializerReadContext context, 982internal bool TryReadDoubleArray(XmlObjectSerializerReadContext context,
System\Runtime\Serialization\XmlSerializableReader.cs (2)
28throw XmlObjectSerializerReadContext.CreateUnexpectedStateException(XmlNodeType.Element, xmlReader); 46throw XmlObjectSerializerReadContext.CreateUnexpectedStateException(XmlNodeType.EndElement, _xmlReader);