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)
385
private
StructMapping
? _topLevelMapping;
415
internal
StructMapping
? TopLevelMapping
470
private
StructMapping
? _baseMapping;
471
private
StructMapping
? _derivedMappings;
472
private
StructMapping
? _nextDerivedMapping;
481
internal
StructMapping
? BaseMapping
497
for (
StructMapping
? derived = _derivedMappings; derived != null; derived = derived.NextDerivedMapping)
506
internal
StructMapping
? DerivedMappings
534
internal
StructMapping
? NextDerivedMapping
548
StructMapping
? mapping = this;
583
internal MemberMapping? FindDeclaringMapping(MemberMapping member, out
StructMapping
? declaringMapping, string? parent)
662
StructMapping
start = this;
669
for (
StructMapping
? derived = start.DerivedMappings; derived != null; derived = derived.NextDerivedMapping)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (11)
39
(mapping is
StructMapping
|| mapping is EnumMapping || mapping is ArrayMapping || mapping is NullableMapping) &&
917
else if (element.Mapping is
StructMapping
|| (element.Mapping.IsSoap && element.Mapping is PrimitiveMapping))
952
mapping: (
StructMapping
)mapping,
1033
if (mapping is
StructMapping
structMapping)
1238
private object? WriteStructMethod(
StructMapping
mapping, bool isNullable, bool checkType, string? defaultNamespace)
1338
private object? WriteEncodedStructMethod(
StructMapping
structMapping)
1410
if (mapping is
StructMapping
|| mapping is ArrayMapping || mapping is PrimitiveMapping || mapping is NullableMapping)
1512
private object? WriteLiteralStructMethod(
StructMapping
structMapping, bool isNullable, bool checkType, string? defaultNamespace)
1638
structMapping.FindDeclaringMapping(mapping, out
StructMapping
? declaringMapping, structMapping.TypeName!);
1867
private bool WriteDerivedTypes(out object? o,
StructMapping
mapping, XmlQualifiedName xsiType, string? defaultNamespace, bool checkType, bool isNullable)
1869
for (
StructMapping
? derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping)
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (8)
46
(mapping is
StructMapping
|| mapping is EnumMapping) &&
493
else if (element.Mapping is
StructMapping
)
495
var
mapping = element.Mapping as
StructMapping
;
532
if (mapping is
StructMapping
structMapping)
582
private void WriteStructMethod(
StructMapping
mapping, string n, string? ns, object? o, bool isNullable, bool needType)
981
private bool WriteDerivedTypes(
StructMapping
mapping, string n, string? ns, object o, bool isNullable)
984
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);
1051
else if (itemTypeMapping is
StructMapping
&& itemTypeMapping.TypeDesc!.IsRoot)
2325
private readonly
StructMapping
_mapping;
2327
internal ImportStructWorkItem(StructModel model,
StructMapping
mapping)
2334
internal
StructMapping
Mapping { get { return _mapping; } }
2366
internal bool Contains(
StructMapping
mapping)
2371
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)
2270
if (mapping is
StructMapping
|| mapping is EnumMapping || mapping is NullableMapping)
2282
if (mapping is
StructMapping
)
2283
WriteStructMethod((
StructMapping
)mapping);
2301
if (mapping is
StructMapping
)
2303
WriteStructMethod((
StructMapping
)mapping);
2416
(mapping is
StructMapping
|| mapping is EnumMapping || mapping is ArrayMapping || mapping is NullableMapping) &&
3084
private void WriteDerivedTypes(
StructMapping
mapping, bool isTypedReturn, string returnTypeName)
3086
for (
StructMapping
? derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping)
3232
private void WriteStructMethod(
StructMapping
structMapping)
3240
private void WriteLiteralStructMethod(
StructMapping
structMapping)
3368
StructMapping
? declaringMapping;
3445
private void WriteEncodedStructMethod(
StructMapping
structMapping)
3898
if (mapping is
StructMapping
|| mapping is ArrayMapping || mapping is PrimitiveMapping || mapping is NullableMapping)
4768
else if (element.Mapping is
StructMapping
|| (element.Mapping.IsSoap && element.Mapping is PrimitiveMapping))
System\Xml\Serialization\XmlSerializationReaderILGen.cs (9)
196
if (mapping is
StructMapping
|| mapping is EnumMapping || mapping is NullableMapping)
208
if (mapping is
StructMapping
)
210
WriteStructMethod((
StructMapping
)mapping);
1130
private void WriteDerivedTypes(
StructMapping
mapping, bool isTypedReturn, string returnTypeName)
1132
for (
StructMapping
? derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping)
1318
private void WriteStructMethod(
StructMapping
structMapping)
1323
private void WriteLiteralStructMethod(
StructMapping
structMapping)
1565
StructMapping
? declaringMapping;
3122
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)
4132
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)
1988
else if (element.Mapping is
StructMapping
structMapping)