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