8 instantiations of StructMapping
System.Private.Xml (8)
System\Xml\Serialization\SchemaImporter.cs (1)
113
StructMapping mapping = new
StructMapping
();
System\Xml\Serialization\SoapReflectionImporter.cs (2)
227
StructMapping mapping = new
StructMapping
();
311
mapping = new
StructMapping
();
System\Xml\Serialization\XmlReflectionImporter.cs (2)
637
StructMapping mapping = new
StructMapping
();
745
mapping = new
StructMapping
();
System\Xml\Serialization\XmlSchemaImporter.cs (3)
547
StructMapping structMapping = new
StructMapping
();
610
StructMapping structMapping = new
StructMapping
();
1550
StructMapping xmlnsMapping = new
StructMapping
();
142 references to StructMapping
System.Private.Xml (142)
System\Xml\Serialization\Mappings.cs (13)
400
private
StructMapping
? _topLevelMapping;
430
internal
StructMapping
? TopLevelMapping
485
private
StructMapping
? _baseMapping;
486
private
StructMapping
? _derivedMappings;
487
private
StructMapping
? _nextDerivedMapping;
496
internal
StructMapping
? BaseMapping
512
for (
StructMapping
? derived = _derivedMappings; derived != null; derived = derived.NextDerivedMapping)
521
internal
StructMapping
? DerivedMappings
549
internal
StructMapping
? NextDerivedMapping
563
StructMapping
? mapping = this;
598
internal MemberMapping? FindDeclaringMapping(MemberMapping member, out
StructMapping
? declaringMapping, string? parent)
677
StructMapping
start = this;
684
for (
StructMapping
? derived = start.DerivedMappings; derived != null; derived = derived.NextDerivedMapping)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (11)
46
(mapping is
StructMapping
|| mapping is EnumMapping || mapping is ArrayMapping || mapping is NullableMapping) &&
979
else if (element.Mapping is
StructMapping
|| (element.Mapping.IsSoap && element.Mapping is PrimitiveMapping))
1014
mapping: (
StructMapping
)mapping,
1131
if (mapping is
StructMapping
structMapping)
1335
private object? WriteStructMethod(
StructMapping
mapping, bool isNullable, bool checkType, string? defaultNamespace)
1435
private object? WriteEncodedStructMethod(
StructMapping
structMapping)
1507
if (mapping is
StructMapping
|| mapping is ArrayMapping || mapping is PrimitiveMapping || mapping is NullableMapping)
1609
private object? WriteLiteralStructMethod(
StructMapping
structMapping, bool isNullable, bool checkType, string? defaultNamespace)
1733
structMapping.FindDeclaringMapping(mapping, out
StructMapping
? declaringMapping, structMapping.TypeName!);
1969
private bool WriteDerivedTypes(out object? o,
StructMapping
mapping, XmlQualifiedName xsiType, string? defaultNamespace, bool checkType, bool isNullable)
1971
for (
StructMapping
? derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping)
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (8)
47
(mapping is
StructMapping
|| mapping is EnumMapping) &&
651
else if (element.Mapping is
StructMapping
)
653
var
mapping = element.Mapping as
StructMapping
;
690
if (mapping is
StructMapping
structMapping)
740
private void WriteStructMethod(
StructMapping
mapping, string n, string? ns, object? o, bool isNullable, bool needType)
1135
private bool WriteDerivedTypes(
StructMapping
mapping, string n, string? ns, object o, bool isNullable)
1138
for (
StructMapping
? derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping)
System\Xml\Serialization\SchemaImporter.cs (6)
20
private
StructMapping
? _root;
79
internal void MakeDerived(
StructMapping
structMapping, Type? baseType, bool baseTypeCanBeIndirect)
110
private
StructMapping
CreateRootMapping()
113
StructMapping
mapping = new StructMapping();
124
internal
StructMapping
GetRootMapping() => _root ??= CreateRootMapping();
128
internal
StructMapping
ImportRootMapping()
System\Xml\Serialization\SoapReflectionImporter.cs (10)
23
private
StructMapping
? _root;
224
private
StructMapping
CreateRootMapping()
227
StructMapping
mapping = new StructMapping();
238
private
StructMapping
GetRootMapping()
296
private
StructMapping
ImportStructLikeMapping(StructModel model, RecursionLimiter limiter)
308
StructMapping
? mapping = (
StructMapping
?)GetTypeMapping(typeName, typeNs, model.TypeDesc);
354
private bool InitializeStructMembers(
StructMapping
mapping, StructModel model, RecursionLimiter limiter)
360
StructMapping
baseMapping = ImportStructLikeMapping((StructModel)_modelScope.GetTypeModel(model.Type.BaseType!, false), limiter);
481
else if (itemTypeMapping is
StructMapping
)
System\Xml\Serialization\Types.cs (7)
1088
internal static MemberMapping[] GetAllMembers(
StructMapping
mapping)
1097
internal static void GetAllMembers(
StructMapping
mapping, List<MemberMapping> list)
1113
internal static MemberMapping[] GetAllMembers(
StructMapping
mapping, System.Collections.Generic.Dictionary<string, MemberInfo> memberInfos)
1120
internal static MemberMapping[] GetSettableMembers(
StructMapping
structMapping)
1127
private static void GetSettableMembers(
StructMapping
mapping, List<MemberMapping> list)
1183
internal static MemberMapping[] GetSettableMembers(
StructMapping
mapping, System.Collections.Generic.Dictionary<string, MemberInfo> memberInfos)
1191
private static void PopulateMemberInfos(
StructMapping
structMapping, MemberMapping[] mappings, System.Collections.Generic.Dictionary<string, MemberInfo> memberInfos)
System\Xml\Serialization\XmlReflectionImporter.cs (15)
36
private
StructMapping
? _root;
634
private
StructMapping
CreateRootMapping()
637
StructMapping
mapping = new StructMapping();
702
private
StructMapping
GetRootMapping()
728
private
StructMapping
ImportStructLikeMapping(StructModel model, string? ns, bool openModel, XmlAttributes? a, RecursionLimiter limiter)
742
StructMapping
? mapping = (
StructMapping
?)GetTypeMapping(typeName, typeNs, model.TypeDesc, _types, model.Type);
794
private bool InitializeStructMembers(
StructMapping
mapping, StructModel model, bool openModel, string? typeName, RecursionLimiter limiter)
807
StructMapping
baseMapping = ImportStructLikeMapping((StructModel)baseModel, mapping.Namespace, openModel, null, limiter);
1052
else if (itemTypeMapping is
StructMapping
&& itemTypeMapping.TypeDesc!.IsRoot)
2340
private readonly
StructMapping
_mapping;
2342
internal ImportStructWorkItem(StructModel model,
StructMapping
mapping)
2349
internal
StructMapping
Mapping { get { return _mapping; } }
2381
internal bool Contains(
StructMapping
mapping)
2386
internal int IndexOf(
StructMapping
mapping)
System\Xml\Serialization\XmlSchemaExporter.cs (9)
355
else if (mapping is
StructMapping
)
356
ExportStructMapping((
StructMapping
)mapping, ns, null);
382
else if (mapping is
StructMapping
)
384
ExportStructMapping((
StructMapping
)mapping, ns, element);
940
if (mapping is
StructMapping
&& mapping.TypeDesc!.IsRoot)
942
ExportDerivedMappings((
StructMapping
)mapping);
955
private XmlQualifiedName ExportStructMapping(
StructMapping
mapping, string? ns, XmlSchemaElement? element)
1126
private void ExportDerivedMappings(
StructMapping
mapping)
1130
for (
StructMapping
? derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping)
System\Xml\Serialization\XmlSchemaImporter.cs (20)
56
if (element.Mapping is
StructMapping
)
58
MakeDerived((
StructMapping
)element.Mapping, baseType, baseTypeCanBeIndirect);
66
MakeDerived((
StructMapping
)element.Mapping!, baseType, baseTypeCanBeIndirect);
109
if (accessor.Mapping is
StructMapping
)
111
MakeDerived((
StructMapping
)accessor.Mapping, baseType, baseTypeCanBeIndirect);
119
MakeDerived((
StructMapping
)accessor.Mapping!, baseType, baseTypeCanBeIndirect);
203
if (baseType != null && accessor.Mapping is
StructMapping
)
204
MakeDerived((
StructMapping
)accessor.Mapping, baseType, baseTypeCanBeIndirect);
495
private
StructMapping
ImportStructType(XmlSchemaType type, string? typeNs, string identifier, Type? baseType, bool arrayLike)
505
if (baseMapping is
StructMapping
)
506
baseTypeDesc = ((
StructMapping
)baseMapping).TypeDesc;
530
if (previousMapping is
StructMapping
)
532
return (
StructMapping
)previousMapping;
547
StructMapping
structMapping = new StructMapping();
561
structMapping.BaseMapping = (
StructMapping
)baseMapping;
588
StructMapping
? declaringMapping;
589
MemberMapping? baseMember = ((
StructMapping
)baseMapping).FindDeclaringMapping(structMapping.Members[i], out declaringMapping, structMapping.TypeName);
606
private
StructMapping
ImportStructDataType(XmlSchemaSimpleType dataType, string? typeNs, string identifier, Type baseType)
610
StructMapping
structMapping = new StructMapping();
1550
StructMapping
xmlnsMapping = new StructMapping();
System\Xml\Serialization\XmlSerializationReader.cs (14)
2295
if (mapping is
StructMapping
|| mapping is EnumMapping || mapping is NullableMapping)
2307
if (mapping is
StructMapping
)
2308
WriteStructMethod((
StructMapping
)mapping);
2326
if (mapping is
StructMapping
)
2328
WriteStructMethod((
StructMapping
)mapping);
2454
(mapping is
StructMapping
|| mapping is EnumMapping || mapping is ArrayMapping || mapping is NullableMapping) &&
3122
private void WriteDerivedTypes(
StructMapping
mapping, bool isTypedReturn, string returnTypeName)
3124
for (
StructMapping
? derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping)
3270
private void WriteStructMethod(
StructMapping
structMapping)
3278
private void WriteLiteralStructMethod(
StructMapping
structMapping)
3406
StructMapping
? declaringMapping;
3483
private void WriteEncodedStructMethod(
StructMapping
structMapping)
3943
if (mapping is
StructMapping
|| mapping is ArrayMapping || mapping is PrimitiveMapping || mapping is NullableMapping)
4872
else if (element.Mapping is
StructMapping
|| (element.Mapping.IsSoap && element.Mapping is PrimitiveMapping))
System\Xml\Serialization\XmlSerializationReaderILGen.cs (9)
205
if (mapping is
StructMapping
|| mapping is EnumMapping || mapping is NullableMapping)
217
if (mapping is
StructMapping
)
219
WriteStructMethod((
StructMapping
)mapping);
1207
private void WriteDerivedTypes(
StructMapping
mapping, bool isTypedReturn, string returnTypeName)
1209
for (
StructMapping
? derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping)
1395
private void WriteStructMethod(
StructMapping
structMapping)
1400
private void WriteLiteralStructMethod(
StructMapping
structMapping)
1642
StructMapping
? declaringMapping;
3333
else if (element.Mapping is
StructMapping
)
System\Xml\Serialization\XmlSerializationWriter.cs (13)
1744
if (mapping is
StructMapping
)
1746
StructMapping
structMapping = (mapping as
StructMapping
)!;
2309
if (mapping is
StructMapping
|| mapping is EnumMapping)
2326
if (mapping is
StructMapping
)
2327
WriteStructMethod((
StructMapping
)mapping);
2341
if (mapping is
StructMapping
)
2343
WriteStructMethod((
StructMapping
)mapping);
2386
(typeMapping is
StructMapping
|| typeMapping is EnumMapping) &&
3020
private void WriteDerivedTypes(
StructMapping
mapping)
3022
for (
StructMapping
? derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping)
3123
private void WriteStructMethod(
StructMapping
mapping)
4150
else if (element.Mapping is
StructMapping
structMapping)
System\Xml\Serialization\XmlSerializationWriterILGen.cs (7)
39
if (mapping is
StructMapping
|| mapping is EnumMapping)
53
if (mapping is
StructMapping
)
55
WriteStructMethod((
StructMapping
)mapping);
736
private void WriteDerivedTypes(
StructMapping
mapping)
738
for (
StructMapping
? derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping)
909
private void WriteStructMethod(
StructMapping
mapping)
2031
else if (element.Mapping is
StructMapping
structMapping)