1 type derived from XmlWriterDelegator
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\Json\JsonWriterDelegator.cs (1)
9
internal sealed class JsonWriterDelegator :
XmlWriterDelegator
9 instantiations of XmlWriterDelegator
System.Private.DataContractSerialization (9)
System\Runtime\Serialization\DataContractSerializer.cs (8)
257
WriteObjectHandleExceptions(new
XmlWriterDelegator
(writer), graph);
264
WriteStartObjectHandleExceptions(new
XmlWriterDelegator
(writer), graph);
271
WriteObjectContentHandleExceptions(new
XmlWriterDelegator
(writer), graph);
278
WriteEndObjectHandleExceptions(new
XmlWriterDelegator
(writer));
285
WriteStartObjectHandleExceptions(new
XmlWriterDelegator
(writer), graph);
292
WriteObjectContentHandleExceptions(new
XmlWriterDelegator
(writer), graph);
299
WriteEndObjectHandleExceptions(new
XmlWriterDelegator
(writer));
306
WriteObjectHandleExceptions(new
XmlWriterDelegator
(writer), graph, dataContractResolver);
System\Runtime\Serialization\XmlObjectSerializer.cs (1)
82
WriteObjectHandleExceptions(new
XmlWriterDelegator
(writer), graph);
203 references to XmlWriterDelegator
System.Private.DataContractSerialization (203)
System\Runtime\Serialization\ClassDataContract.cs (1)
383
internal override void WriteXmlValue(
XmlWriterDelegator
xmlWriter, object obj, XmlObjectSerializerWriteContext? context)
System\Runtime\Serialization\CollectionDataContract.cs (5)
382
internal void IncrementCollectionCount(
XmlWriterDelegator
xmlWriter, object obj, XmlObjectSerializerWriteContext context)
740
private delegate void IncrementCollectionCountDelegate(
XmlWriterDelegator
xmlWriter, object obj, XmlObjectSerializerWriteContext context);
744
private static void DummyIncrementCollectionCount(
XmlWriterDelegator
xmlWriter, object obj, XmlObjectSerializerWriteContext context) { }
747
internal void IncrementCollectionCount(
XmlWriterDelegator
xmlWriter, object obj, XmlObjectSerializerWriteContext context)
1556
internal override void WriteXmlValue(
XmlWriterDelegator
xmlWriter, object obj, XmlObjectSerializerWriteContext? context)
System\Runtime\Serialization\DataContract.cs (3)
169
internal virtual void WriteXmlValue(
XmlWriterDelegator
xmlWriter, object obj, XmlObjectSerializerWriteContext? context)
183
internal virtual void WriteXmlElement(
XmlWriterDelegator
xmlWriter, object? obj, XmlObjectSerializerWriteContext context, XmlDictionaryString name, XmlDictionaryString? ns)
274
internal virtual void WriteRootElement(
XmlWriterDelegator
writer, XmlDictionaryString name, XmlDictionaryString? ns)
System\Runtime\Serialization\DataContractSerializer.cs (6)
239
internal override void InternalWriteObject(
XmlWriterDelegator
writer, object? graph)
246
internal override void InternalWriteObject(
XmlWriterDelegator
writer, object? graph, DataContractResolver? dataContractResolver)
353
internal override void InternalWriteStartObject(
XmlWriterDelegator
writer, object? graph)
360
internal override void InternalWriteObjectContent(
XmlWriterDelegator
writer, object? graph)
367
internal void InternalWriteObjectContent(
XmlWriterDelegator
writer, object? graph, DataContractResolver? dataContractResolver)
442
internal override void InternalWriteEndObject(
XmlWriterDelegator
writer)
System\Runtime\Serialization\EnumDataContract.cs (2)
283
internal void WriteEnumValue(
XmlWriterDelegator
writer, object value)
446
internal override void WriteXmlValue(
XmlWriterDelegator
xmlWriter, object obj, XmlObjectSerializerWriteContext? context)
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (6)
406
internal static void WriteJsonNull(
XmlWriterDelegator
writer)
413
internal static void WriteJsonValue(JsonDataContract contract,
XmlWriterDelegator
writer, object graph, XmlObjectSerializerWriteContextComplexJson? context, RuntimeTypeHandle declaredTypeHandle)
473
internal override void InternalWriteEndObject(
XmlWriterDelegator
writer)
480
internal override void InternalWriteObject(
XmlWriterDelegator
writer, object? graph)
489
internal override void InternalWriteObjectContent(
XmlWriterDelegator
writer, object? graph)
543
internal override void InternalWriteStartObject(
XmlWriterDelegator
writer, object? graph)
System\Runtime\Serialization\Json\JsonClassDataContract.cs (1)
106
public override void WriteJsonValueCore(
XmlWriterDelegator
jsonWriter, object obj, XmlObjectSerializerWriteContextComplexJson? context, RuntimeTypeHandle declaredTypeHandle)
System\Runtime\Serialization\Json\JsonCollectionDataContract.cs (1)
151
public override void WriteJsonValueCore(
XmlWriterDelegator
jsonWriter, object obj, XmlObjectSerializerWriteContextComplexJson? context, RuntimeTypeHandle declaredTypeHandle)
System\Runtime\Serialization\Json\JsonDataContract.cs (2)
96
public void WriteJsonValue(
XmlWriterDelegator
jsonWriter, object obj, XmlObjectSerializerWriteContextComplexJson? context, RuntimeTypeHandle declaredTypeHandle)
105
public virtual void WriteJsonValueCore(
XmlWriterDelegator
jsonWriter, object obj, XmlObjectSerializerWriteContextComplexJson? context, RuntimeTypeHandle declaredTypeHandle)
System\Runtime\Serialization\Json\JsonEnumDataContract.cs (1)
43
public override void WriteJsonValueCore(
XmlWriterDelegator
jsonWriter, object obj, XmlObjectSerializerWriteContextComplexJson? context, RuntimeTypeHandle declaredTypeHandle)
System\Runtime\Serialization\Json\JsonFormatGeneratorStatics.cs (4)
401
s_writeAttributeStringMethod = typeof(
XmlWriterDelegator
).GetMethod("WriteAttributeString", Globals.ScanAllMembers, new Type[] { typeof(string), typeof(string), typeof(string), typeof(string) });
413
s_writeEndElementMethod = typeof(
XmlWriterDelegator
).GetMethod("WriteEndElement", Globals.ScanAllMembers, Type.EmptyTypes);
463
s_writeStartElementMethod = typeof(
XmlWriterDelegator
).GetMethod("WriteStartElement", Globals.ScanAllMembers, new Type[] { typeof(XmlDictionaryString), typeof(XmlDictionaryString) });
476
s_writeStartElementStringMethod = typeof(
XmlWriterDelegator
).GetMethod("WriteStartElement", Globals.ScanAllMembers, new Type[] { typeof(string), typeof(string) });
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (2)
16
internal delegate void JsonFormatClassWriterDelegate(
XmlWriterDelegator
xmlWriter, object obj, XmlObjectSerializerWriteContextComplexJson context, ClassDataContract dataContract, XmlDictionaryString[]? memberNames);
17
internal delegate void JsonFormatCollectionWriterDelegate(
XmlWriterDelegator
xmlWriter, object obj, XmlObjectSerializerWriteContextComplexJson context, CollectionDataContract dataContract);
System\Runtime\Serialization\Json\JsonObjectDataContract.cs (1)
61
public override void WriteJsonValueCore(
XmlWriterDelegator
jsonWriter, object obj, XmlObjectSerializerWriteContextComplexJson? context, RuntimeTypeHandle declaredTypeHandle)
System\Runtime\Serialization\Json\JsonXmlDataContract.cs (1)
50
public override void WriteJsonValueCore(
XmlWriterDelegator
jsonWriter, object obj, XmlObjectSerializerWriteContextComplexJson? context, RuntimeTypeHandle declaredTypeHandle)
System\Runtime\Serialization\Json\ReflectionJsonFormatWriter.cs (8)
24
public void ReflectionWriteClass(
XmlWriterDelegator
xmlWriter, object obj, XmlObjectSerializerWriteContextComplexJson context, ClassDataContract classContract, XmlDictionaryString[]? memberNames)
31
public static void ReflectionWriteCollection(
XmlWriterDelegator
xmlWriter, object obj, XmlObjectSerializerWriteContextComplexJson context, CollectionDataContract collectionContract)
133
private static void ReflectionWriteObjectAttribute(
XmlWriterDelegator
xmlWriter)
188
private static void ReflectionWriteArrayAttribute(
XmlWriterDelegator
xmlWriter)
202
protected override int ReflectionWriteMembers(
XmlWriterDelegator
xmlWriter, object obj, XmlObjectSerializerWriteContext context, ClassDataContract classContract, ClassDataContract derivedMostClassContract, int childElementIndex, XmlDictionaryString[]? memberNames)
276
public static void ReflectionWriteStartElement(
XmlWriterDelegator
xmlWriter, XmlDictionaryString name)
281
public static void ReflectionWriteStartElement(
XmlWriterDelegator
xmlWriter, string name)
286
public static void ReflectionWriteEndElement(
XmlWriterDelegator
xmlWriter)
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (11)
55
internal override void WriteArraySize(
XmlWriterDelegator
xmlWriter, int size)
60
protected override void WriteTypeInfo(
XmlWriterDelegator
writer, string dataContractName, string? dataContractNamespace)
98
protected override bool WriteTypeInfo(
XmlWriterDelegator
writer, DataContract contract, DataContract declaredContract)
143
private static void WriteTypeInfo(
XmlWriterDelegator
writer, string typeInformation)
150
protected override void WriteDataContractValue(DataContract dataContract,
XmlWriterDelegator
xmlWriter, object obj, RuntimeTypeHandle declaredTypeHandle)
161
protected override void WriteNull(
XmlWriterDelegator
xmlWriter)
173
protected override void SerializeWithXsiType(
XmlWriterDelegator
xmlWriter, object obj, RuntimeTypeHandle objectTypeHandle, Type? objectType, int declaredTypeID, RuntimeTypeHandle declaredTypeHandle, Type declaredType)
242
internal override void SerializeWithXsiTypeAtTopLevel(DataContract dataContract,
XmlWriterDelegator
xmlWriter, object obj, RuntimeTypeHandle originalDeclaredTypeHandle, Type graphType)
284
internal static void WriteJsonNameWithMapping(
XmlWriterDelegator
xmlWriter, XmlDictionaryString[] memberNames, int index)
292
internal override void WriteExtensionDataTypeInfo(
XmlWriterDelegator
xmlWriter, IDataNode dataNode)
337
internal void WriteJsonISerializable(
XmlWriterDelegator
xmlWriter, ISerializable obj)
System\Runtime\Serialization\PrimitiveDataContract.cs (49)
70
_helper.XmlFormatWriterMethod = typeof(
XmlWriterDelegator
).GetMethod(WriteMethodName, Globals.ScanAllMembers, new Type[] { UnderlyingType, typeof(XmlDictionaryString), typeof(XmlDictionaryString) })!;
72
_helper.XmlFormatWriterMethod = typeof(XmlObjectSerializerWriteContext).GetMethod(WriteMethodName, Globals.ScanAllMembers, new Type[] { typeof(
XmlWriterDelegator
), UnderlyingType, typeof(XmlDictionaryString), typeof(XmlDictionaryString) })!;
86
_helper.XmlFormatContentWriterMethod = typeof(
XmlWriterDelegator
).GetMethod(WriteMethodName, Globals.ScanAllMembers, new Type[] { UnderlyingType })!;
88
_helper.XmlFormatContentWriterMethod = typeof(XmlObjectSerializerWriteContext).GetMethod(WriteMethodName, Globals.ScanAllMembers, new Type[] { typeof(
XmlWriterDelegator
), UnderlyingType })!;
99
internal override void WriteXmlValue(
XmlWriterDelegator
xmlWriter, object obj, XmlObjectSerializerWriteContext? context)
184
internal override void WriteXmlValue(
XmlWriterDelegator
writer, object obj, XmlObjectSerializerWriteContext? context)
199
internal override void WriteXmlElement(
XmlWriterDelegator
xmlWriter, object? obj, XmlObjectSerializerWriteContext context, XmlDictionaryString name, XmlDictionaryString? ns)
221
internal override void WriteXmlValue(
XmlWriterDelegator
writer, object obj, XmlObjectSerializerWriteContext? context)
236
internal override void WriteXmlElement(
XmlWriterDelegator
xmlWriter, object? obj, XmlObjectSerializerWriteContext context, XmlDictionaryString name, XmlDictionaryString? ns)
253
internal override void WriteXmlValue(
XmlWriterDelegator
writer, object obj, XmlObjectSerializerWriteContext? context)
268
internal override void WriteXmlElement(
XmlWriterDelegator
xmlWriter, object? obj, XmlObjectSerializerWriteContext context, XmlDictionaryString name, XmlDictionaryString? ns)
285
internal override void WriteXmlValue(
XmlWriterDelegator
writer, object obj, XmlObjectSerializerWriteContext? context)
300
internal override void WriteXmlElement(
XmlWriterDelegator
xmlWriter, object? obj, XmlObjectSerializerWriteContext context, XmlDictionaryString name, XmlDictionaryString? ns)
317
internal override void WriteXmlValue(
XmlWriterDelegator
writer, object obj, XmlObjectSerializerWriteContext? context)
332
internal override void WriteXmlElement(
XmlWriterDelegator
xmlWriter, object? obj, XmlObjectSerializerWriteContext context, XmlDictionaryString name, XmlDictionaryString? ns)
349
internal override void WriteXmlValue(
XmlWriterDelegator
writer, object obj, XmlObjectSerializerWriteContext? context)
364
internal override void WriteXmlElement(
XmlWriterDelegator
xmlWriter, object? obj, XmlObjectSerializerWriteContext context, XmlDictionaryString name, XmlDictionaryString? ns)
403
internal override void WriteXmlValue(
XmlWriterDelegator
writer, object obj, XmlObjectSerializerWriteContext? context)
417
internal override void WriteXmlElement(
XmlWriterDelegator
xmlWriter, object? obj, XmlObjectSerializerWriteContext context, XmlDictionaryString name, XmlDictionaryString? ns)
434
internal override void WriteXmlValue(
XmlWriterDelegator
writer, object obj, XmlObjectSerializerWriteContext? context)
449
internal override void WriteXmlElement(
XmlWriterDelegator
xmlWriter, object? obj, XmlObjectSerializerWriteContext context, XmlDictionaryString name, XmlDictionaryString? ns)
466
internal override void WriteXmlValue(
XmlWriterDelegator
writer, object obj, XmlObjectSerializerWriteContext? context)
481
internal override void WriteXmlElement(
XmlWriterDelegator
xmlWriter, object? obj, XmlObjectSerializerWriteContext context, XmlDictionaryString name, XmlDictionaryString? ns)
502
internal override void WriteXmlValue(
XmlWriterDelegator
writer, object obj, XmlObjectSerializerWriteContext? context)
517
internal override void WriteXmlElement(
XmlWriterDelegator
xmlWriter, object? obj, XmlObjectSerializerWriteContext context, XmlDictionaryString name, XmlDictionaryString? ns)
559
internal override void WriteXmlValue(
XmlWriterDelegator
writer, object obj, XmlObjectSerializerWriteContext? context)
574
internal override void WriteXmlElement(
XmlWriterDelegator
xmlWriter, object? obj, XmlObjectSerializerWriteContext context, XmlDictionaryString name, XmlDictionaryString? ns)
591
internal override void WriteXmlValue(
XmlWriterDelegator
writer, object obj, XmlObjectSerializerWriteContext? context)
606
internal override void WriteXmlElement(
XmlWriterDelegator
xmlWriter, object? obj, XmlObjectSerializerWriteContext context, XmlDictionaryString name, XmlDictionaryString? ns)
623
internal override void WriteXmlValue(
XmlWriterDelegator
writer, object obj, XmlObjectSerializerWriteContext? context)
638
internal override void WriteXmlElement(
XmlWriterDelegator
xmlWriter, object? obj, XmlObjectSerializerWriteContext context, XmlDictionaryString name, XmlDictionaryString? ns)
655
internal override void WriteXmlValue(
XmlWriterDelegator
writer, object obj, XmlObjectSerializerWriteContext? context)
670
internal override void WriteXmlElement(
XmlWriterDelegator
xmlWriter, object? obj, XmlObjectSerializerWriteContext context, XmlDictionaryString name, XmlDictionaryString? ns)
687
internal override void WriteXmlValue(
XmlWriterDelegator
writer, object obj, XmlObjectSerializerWriteContext? context)
702
internal override void WriteXmlElement(
XmlWriterDelegator
xmlWriter, object? obj, XmlObjectSerializerWriteContext context, XmlDictionaryString name, XmlDictionaryString? ns)
723
internal override void WriteXmlValue(
XmlWriterDelegator
writer, object obj, XmlObjectSerializerWriteContext? context)
744
internal override void WriteXmlElement(
XmlWriterDelegator
xmlWriter, object? obj, XmlObjectSerializerWriteContext context, XmlDictionaryString name, XmlDictionaryString? ns)
861
internal override void WriteXmlValue(
XmlWriterDelegator
writer, object obj, XmlObjectSerializerWriteContext? context)
882
internal override void WriteXmlElement(
XmlWriterDelegator
xmlWriter, object? obj, XmlObjectSerializerWriteContext context, XmlDictionaryString name, XmlDictionaryString? ns)
901
internal override void WriteXmlValue(
XmlWriterDelegator
writer, object obj, XmlObjectSerializerWriteContext? context)
954
internal override void WriteXmlValue(
XmlWriterDelegator
writer, object obj, XmlObjectSerializerWriteContext? context)
969
internal override void WriteXmlElement(
XmlWriterDelegator
writer, object? obj, XmlObjectSerializerWriteContext context, XmlDictionaryString name, XmlDictionaryString? ns)
995
internal override void WriteXmlValue(
XmlWriterDelegator
writer, object obj, XmlObjectSerializerWriteContext? context)
1010
internal override void WriteXmlElement(
XmlWriterDelegator
xmlWriter, object? obj, XmlObjectSerializerWriteContext context, XmlDictionaryString name, XmlDictionaryString? ns)
1032
internal override void WriteXmlValue(
XmlWriterDelegator
writer, object obj, XmlObjectSerializerWriteContext? context)
1053
internal override void WriteXmlElement(
XmlWriterDelegator
writer, object? obj, XmlObjectSerializerWriteContext context, XmlDictionaryString name, XmlDictionaryString? ns)
1072
internal override void WriteXmlValue(
XmlWriterDelegator
writer, object obj, XmlObjectSerializerWriteContext? context)
1093
internal override void WriteXmlElement(
XmlWriterDelegator
writer, object? obj, XmlObjectSerializerWriteContext context, XmlDictionaryString name, XmlDictionaryString? ns)
1098
internal override void WriteRootElement(
XmlWriterDelegator
writer, XmlDictionaryString name, XmlDictionaryString? ns)
System\Runtime\Serialization\ReflectionClassWriter.cs (5)
23
public void ReflectionWriteClass(
XmlWriterDelegator
xmlWriter, object obj, XmlObjectSerializerWriteContext context, ClassDataContract classContract, XmlDictionaryString[]? memberNames)
46
public static void ReflectionWriteValue(
XmlWriterDelegator
xmlWriter, XmlObjectSerializerWriteContext context, Type type, object? value, bool writeXsiType, PrimitiveDataContract? primitiveContractForParamType)
111
protected abstract int ReflectionWriteMembers(
XmlWriterDelegator
xmlWriter, object obj, XmlObjectSerializerWriteContext context, ClassDataContract classContract, ClassDataContract derivedMostClassContract, int childElementIndex, XmlDictionaryString[]? memberNames);
120
protected static bool ReflectionTryWritePrimitive(
XmlWriterDelegator
xmlWriter, XmlObjectSerializerWriteContext context, object? value, XmlDictionaryString name, XmlDictionaryString? ns, PrimitiveDataContract? primitiveContract)
168
private static void ReflectionInternalSerialize(
XmlWriterDelegator
xmlWriter, XmlObjectSerializerWriteContext context, object obj, bool isDeclaredType, bool writeXsiType, Type memberType, bool isNullableOfT = false)
System\Runtime\Serialization\ReflectionXmlFormatWriter.cs (6)
21
public void ReflectionWriteClass(
XmlWriterDelegator
xmlWriter, object obj, XmlObjectSerializerWriteContext context, ClassDataContract classContract)
28
public static void ReflectionWriteCollection(
XmlWriterDelegator
xmlWriter, object obj, XmlObjectSerializerWriteContext context, CollectionDataContract collectionDataContract)
96
private static bool ReflectionTryWritePrimitiveArray(
XmlWriterDelegator
xmlWriter, object obj, Type itemType, XmlDictionaryString collectionItemName, XmlDictionaryString itemNamespace)
137
protected override int ReflectionWriteMembers(
XmlWriterDelegator
xmlWriter, object obj, XmlObjectSerializerWriteContext context, ClassDataContract classContract, ClassDataContract derivedMostClassContract, int childElementIndex, XmlDictionaryString[]? emptyStringArray)
206
public static void ReflectionWriteStartElement(
XmlWriterDelegator
xmlWriter, Type type, XmlDictionaryString ns, string namespaceLocal, string nameLocal)
220
public static void ReflectionWriteEndElement(
XmlWriterDelegator
xmlWriter)
System\Runtime\Serialization\XmlDataContract.cs (1)
409
internal override void WriteXmlValue(
XmlWriterDelegator
xmlWriter, object obj, XmlObjectSerializerWriteContext? context)
System\Runtime\Serialization\XmlFormatGeneratorStatics.cs (6)
22
s_writeStartElementMethod2 = typeof(
XmlWriterDelegator
).GetMethod("WriteStartElement", Globals.ScanAllMembers, new Type[] { typeof(XmlDictionaryString), typeof(XmlDictionaryString) });
36
s_writeStartElementMethod3 = typeof(
XmlWriterDelegator
).GetMethod("WriteStartElement", Globals.ScanAllMembers, new Type[] { typeof(string), typeof(XmlDictionaryString), typeof(XmlDictionaryString) });
50
s_writeEndElementMethod = typeof(
XmlWriterDelegator
).GetMethod("WriteEndElement", Globals.ScanAllMembers, Type.EmptyTypes);
64
s_writeNamespaceDeclMethod = typeof(
XmlWriterDelegator
).GetMethod("WriteNamespaceDecl", Globals.ScanAllMembers, new Type[] { typeof(XmlDictionaryString) });
708
s_writeNullMethod = typeof(XmlObjectSerializerWriteContext).GetMethod("WriteNull", Globals.ScanAllMembers, new Type[] { typeof(
XmlWriterDelegator
), typeof(Type), typeof(bool) });
736
s_incrementCollectionCountMethod = typeof(XmlObjectSerializerWriteContext).GetMethod("IncrementCollectionCount", Globals.ScanAllMembers, new Type[] { typeof(
XmlWriterDelegator
), typeof(ICollection) });
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (3)
20
internal delegate void XmlFormatClassWriterDelegate(
XmlWriterDelegator
xmlWriter, object obj, XmlObjectSerializerWriteContext context, ClassDataContract dataContract);
21
internal delegate void XmlFormatCollectionWriterDelegate(
XmlWriterDelegator
xmlWriter, object obj, XmlObjectSerializerWriteContext context, CollectionDataContract dataContract);
628
_ilg.Call(typeof(
XmlWriterDelegator
).GetMethod(writeArrayMethod, Globals.ScanAllMembers, new Type[] { type, typeof(XmlDictionaryString), typeof(XmlDictionaryString) })!);
System\Runtime\Serialization\XmlObjectSerializer.cs (12)
87
internal void WriteObjectHandleExceptions(
XmlWriterDelegator
writer, object? graph)
94
internal void WriteObjectHandleExceptions(
XmlWriterDelegator
writer, object? graph, DataContractResolver? dataContractResolver)
124
internal virtual void InternalWriteObject(
XmlWriterDelegator
writer, object? graph)
133
internal virtual void InternalWriteObject(
XmlWriterDelegator
writer, object? graph, DataContractResolver? dataContractResolver)
140
internal virtual void InternalWriteStartObject(
XmlWriterDelegator
writer, object? graph)
147
internal virtual void InternalWriteObjectContent(
XmlWriterDelegator
writer, object? graph)
154
internal virtual void InternalWriteEndObject(
XmlWriterDelegator
writer)
162
internal void WriteStartObjectHandleExceptions(
XmlWriterDelegator
writer, object? graph)
182
internal void WriteObjectContentHandleExceptions(
XmlWriterDelegator
writer, object? graph)
204
internal void WriteEndObjectHandleExceptions(
XmlWriterDelegator
writer)
222
internal static void WriteRootElement(
XmlWriterDelegator
writer, DataContract contract, XmlDictionaryString? name, XmlDictionaryString? ns, bool needsContractNsAtRoot)
257
internal static void WriteNull(
XmlWriterDelegator
writer)
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (50)
86
internal void InternalSerializeReference(
XmlWriterDelegator
xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, int declaredTypeID, RuntimeTypeHandle declaredTypeHandle)
95
internal virtual void InternalSerialize(
XmlWriterDelegator
xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, int declaredTypeID, RuntimeTypeHandle declaredTypeHandle)
126
internal void SerializeWithoutXsiType(DataContract dataContract,
XmlWriterDelegator
xmlWriter, object obj, RuntimeTypeHandle declaredTypeHandle)
144
internal virtual void SerializeWithXsiTypeAtTopLevel(DataContract dataContract,
XmlWriterDelegator
xmlWriter, object obj, RuntimeTypeHandle originalDeclaredTypeHandle, Type graphType)
167
protected virtual void SerializeWithXsiType(
XmlWriterDelegator
xmlWriter, object obj, RuntimeTypeHandle objectTypeHandle, Type? objectType, int declaredTypeID, RuntimeTypeHandle declaredTypeHandle, Type declaredType)
207
internal bool OnHandleIsReference(
XmlWriterDelegator
xmlWriter, DataContract contract, object obj)
232
protected void SerializeAndVerifyType(DataContract dataContract,
XmlWriterDelegator
xmlWriter, object obj, bool verifyKnownType, RuntimeTypeHandle declaredTypeHandle, Type declaredType)
261
internal virtual bool WriteClrTypeInfo(
XmlWriterDelegator
xmlWriter, DataContract dataContract)
266
internal virtual bool WriteClrTypeInfo(
XmlWriterDelegator
xmlWriter, string clrTypeName, string clrAssemblyName)
271
internal virtual bool WriteClrTypeInfo(
XmlWriterDelegator
xmlWriter, Type dataContractType, string? clrTypeName, string? clrAssemblyName)
276
internal virtual bool WriteClrTypeInfo(
XmlWriterDelegator
xmlWriter, Type dataContractType, SerializationInfo serInfo)
281
internal virtual void WriteAnyType(
XmlWriterDelegator
xmlWriter, object value)
286
internal virtual void WriteString(
XmlWriterDelegator
xmlWriter, string value)
293
internal virtual void WriteString(
XmlWriterDelegator
xmlWriter, string? value, XmlDictionaryString name, XmlDictionaryString? ns)
305
internal virtual void WriteBase64(
XmlWriterDelegator
xmlWriter, byte[] value)
312
internal virtual void WriteBase64(
XmlWriterDelegator
xmlWriter, byte[] value, XmlDictionaryString name, XmlDictionaryString ns)
324
internal virtual void WriteUri(
XmlWriterDelegator
xmlWriter, Uri value)
331
internal virtual void WriteUri(
XmlWriterDelegator
xmlWriter, Uri value, XmlDictionaryString name, XmlDictionaryString ns)
343
internal virtual void WriteQName(
XmlWriterDelegator
xmlWriter, XmlQualifiedName value)
350
internal virtual void WriteQName(
XmlWriterDelegator
xmlWriter, XmlQualifiedName? value, XmlDictionaryString name, XmlDictionaryString? ns)
365
internal void HandleGraphAtTopLevel(
XmlWriterDelegator
writer, object obj, DataContract contract)
376
internal virtual bool OnHandleReference(
XmlWriterDelegator
xmlWriter, object obj, bool canContainCyclicReference)
389
internal virtual void OnEndHandleReference(
XmlWriterDelegator
xmlWriter, object obj, bool canContainCyclicReference)
401
internal void WriteNull(
XmlWriterDelegator
xmlWriter, Type memberType, bool isMemberTypeSerializable)
409
internal void WriteNull(
XmlWriterDelegator
xmlWriter, Type memberType, bool isMemberTypeSerializable, XmlDictionaryString name, XmlDictionaryString? ns)
416
internal void IncrementArrayCount(
XmlWriterDelegator
xmlWriter, Array array)
421
internal void IncrementCollectionCount(
XmlWriterDelegator
xmlWriter, ICollection collection)
426
internal void IncrementCollectionCountGeneric<T>(
XmlWriterDelegator
xmlWriter, ICollection<T> collection)
431
private void IncrementCollectionCount(
XmlWriterDelegator
xmlWriter, int size)
437
internal virtual void WriteArraySize(
XmlWriterDelegator
xmlWriter, int size)
470
internal void WriteIXmlSerializable(
XmlWriterDelegator
xmlWriter, object obj)
476
internal static void WriteRootIXmlSerializable(
XmlWriterDelegator
xmlWriter, object obj)
481
private static void WriteIXmlSerializable(
XmlWriterDelegator
xmlWriter, object obj, XmlSerializableWriter xmlSerializableWriter)
515
public void WriteISerializable(
XmlWriterDelegator
xmlWriter, ISerializable obj)
535
internal void WriteSerializationInfo(
XmlWriterDelegator
xmlWriter, Type objType, SerializationInfo serInfo)
577
protected virtual void WriteDataContractValue(DataContract dataContract,
XmlWriterDelegator
xmlWriter, object obj, RuntimeTypeHandle declaredTypeHandle)
582
protected virtual void WriteNull(
XmlWriterDelegator
xmlWriter)
589
private void WriteResolvedTypeInfo(
XmlWriterDelegator
writer, Type objectType, Type declaredType)
628
protected virtual bool WriteTypeInfo(
XmlWriterDelegator
writer, DataContract contract, DataContract declaredContract)
646
protected virtual void WriteTypeInfo(
XmlWriterDelegator
writer, string dataContractName, string? dataContractNamespace)
651
protected virtual void WriteTypeInfo(
XmlWriterDelegator
writer, XmlDictionaryString dataContractName, XmlDictionaryString dataContractNamespace)
658
public void WriteExtensionData(
XmlWriterDelegator
xmlWriter, ExtensionDataObject? extensionData, int memberIndex)
679
private void WriteExtensionDataMember(
XmlWriterDelegator
xmlWriter, ExtensionDataMember member)
689
internal virtual void WriteExtensionDataTypeInfo(
XmlWriterDelegator
xmlWriter, IDataNode dataNode)
699
internal void WriteExtensionDataValue(
XmlWriterDelegator
xmlWriter, IDataNode? dataNode)
742
internal bool TryWriteDeserializedExtensionData(
XmlWriterDelegator
xmlWriter, IDataNode dataNode)
755
private void WriteExtensionClassData(
XmlWriterDelegator
xmlWriter, ClassDataNode dataNode)
774
private void WriteExtensionCollectionData(
XmlWriterDelegator
xmlWriter, CollectionDataNode dataNode)
797
private void WriteExtensionISerializableData(
XmlWriterDelegator
xmlWriter, ISerializableDataNode dataNode)
822
private void WriteExtensionXmlData(
XmlWriterDelegator
xmlWriter, XmlDataNode dataNode)
System\Runtime\Serialization\XmlObjectSerializerWriteContextComplex.cs (16)
36
internal override bool WriteClrTypeInfo(
XmlWriterDelegator
xmlWriter, DataContract dataContract)
41
internal override bool WriteClrTypeInfo(
XmlWriterDelegator
xmlWriter, Type dataContractType, string? clrTypeName, string? clrAssemblyName)
46
internal override void WriteAnyType(
XmlWriterDelegator
xmlWriter, object value)
52
internal override void WriteString(
XmlWriterDelegator
xmlWriter, string value)
60
internal override void WriteString(
XmlWriterDelegator
xmlWriter, string? value, XmlDictionaryString name, XmlDictionaryString? ns)
73
internal override void WriteBase64(
XmlWriterDelegator
xmlWriter, byte[] value)
81
internal override void WriteBase64(
XmlWriterDelegator
xmlWriter, byte[] value, XmlDictionaryString name, XmlDictionaryString ns)
94
internal override void WriteUri(
XmlWriterDelegator
xmlWriter, Uri value)
102
internal override void WriteUri(
XmlWriterDelegator
xmlWriter, Uri value, XmlDictionaryString name, XmlDictionaryString ns)
115
internal override void WriteQName(
XmlWriterDelegator
xmlWriter, XmlQualifiedName value)
123
internal override void WriteQName(
XmlWriterDelegator
xmlWriter, XmlQualifiedName? value, XmlDictionaryString name, XmlDictionaryString? ns)
141
internal override void InternalSerialize(
XmlWriterDelegator
xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, int declaredTypeID, RuntimeTypeHandle declaredTypeHandle)
153
internal override bool OnHandleReference(
XmlWriterDelegator
xmlWriter, object obj, bool canContainCyclicReference)
171
internal override void OnEndHandleReference(
XmlWriterDelegator
xmlWriter, object obj, bool canContainCyclicReference)
221
private void InternalSerializeWithSurrogate(
XmlWriterDelegator
xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, RuntimeTypeHandle declaredTypeHandle)
254
internal override void WriteArraySize(
XmlWriterDelegator
xmlWriter, int size)