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;
482
internal
StructMapping
? BaseMapping
498
for (
StructMapping
? derived = _derivedMappings; derived != null; derived = derived.NextDerivedMapping)
507
internal
StructMapping
? DerivedMappings
535
internal
StructMapping
? NextDerivedMapping
549
StructMapping
? mapping = this;
584
internal MemberMapping? FindDeclaringMapping(MemberMapping member, out
StructMapping
? declaringMapping, string? parent)
663
StructMapping
start = this;
670
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) &&
907
else if (element.Mapping is
StructMapping
|| (element.Mapping.IsSoap && element.Mapping is PrimitiveMapping))
942
mapping: (
StructMapping
)mapping,
1023
if (mapping is
StructMapping
structMapping)
1228
private object? WriteStructMethod(
StructMapping
mapping, bool isNullable, bool checkType, string? defaultNamespace)
1328
private object? WriteEncodedStructMethod(
StructMapping
structMapping)
1400
if (mapping is
StructMapping
|| mapping is ArrayMapping || mapping is PrimitiveMapping || mapping is NullableMapping)
1502
private object? WriteLiteralStructMethod(
StructMapping
structMapping, bool isNullable, bool checkType, string? defaultNamespace)
1628
structMapping.FindDeclaringMapping(mapping, out
StructMapping
? declaringMapping, structMapping.TypeName!);
1805
private bool WriteDerivedTypes(out object? o,
StructMapping
mapping, XmlQualifiedName xsiType, string? defaultNamespace, bool checkType, bool isNullable)
1807
for (
StructMapping
? derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping)
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (8)
45
(mapping is
StructMapping
|| mapping is EnumMapping) &&
418
else if (element.Mapping is
StructMapping
)
420
var
mapping = element.Mapping as
StructMapping
;
457
if (mapping is
StructMapping
structMapping)
507
private void WriteStructMethod(
StructMapping
mapping, string n, string? ns, object? o, bool isNullable, bool needType)
906
private bool WriteDerivedTypes(
StructMapping
mapping, string n, string? ns, object o, bool isNullable)
909
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)
1025
internal static MemberMapping[] GetAllMembers(
StructMapping
mapping)
1034
internal static void GetAllMembers(
StructMapping
mapping, List<MemberMapping> list)
1047
internal static MemberMapping[] GetAllMembers(
StructMapping
mapping, System.Collections.Generic.Dictionary<string, MemberInfo> memberInfos)
1054
internal static MemberMapping[] GetSettableMembers(
StructMapping
structMapping)
1061
private static void GetSettableMembers(
StructMapping
mapping, List<MemberMapping> list)
1098
internal static MemberMapping[] GetSettableMembers(
StructMapping
mapping, System.Collections.Generic.Dictionary<string, MemberInfo> memberInfos)
1106
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);
1047
else if (itemTypeMapping is
StructMapping
&& itemTypeMapping.TypeDesc!.IsRoot)
2290
private readonly
StructMapping
_mapping;
2292
internal ImportStructWorkItem(StructModel model,
StructMapping
mapping)
2299
internal
StructMapping
Mapping { get { return _mapping; } }
2331
internal bool Contains(
StructMapping
mapping)
2336
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);
944
if (mapping is
StructMapping
&& mapping.TypeDesc!.IsRoot)
946
ExportDerivedMappings((
StructMapping
)mapping);
959
private XmlQualifiedName ExportStructMapping(
StructMapping
mapping, string? ns, XmlSchemaElement? element)
1131
private void ExportDerivedMappings(
StructMapping
mapping)
1135
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)
2244
if (mapping is
StructMapping
|| mapping is EnumMapping || mapping is NullableMapping)
2256
if (mapping is
StructMapping
)
2257
WriteStructMethod((
StructMapping
)mapping);
2275
if (mapping is
StructMapping
)
2277
WriteStructMethod((
StructMapping
)mapping);
2390
(mapping is
StructMapping
|| mapping is EnumMapping || mapping is ArrayMapping || mapping is NullableMapping) &&
3058
private void WriteDerivedTypes(
StructMapping
mapping, bool isTypedReturn, string returnTypeName)
3060
for (
StructMapping
? derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping)
3206
private void WriteStructMethod(
StructMapping
structMapping)
3214
private void WriteLiteralStructMethod(
StructMapping
structMapping)
3342
StructMapping
? declaringMapping;
3419
private void WriteEncodedStructMethod(
StructMapping
structMapping)
3872
if (mapping is
StructMapping
|| mapping is ArrayMapping || mapping is PrimitiveMapping || mapping is NullableMapping)
4733
else if (element.Mapping is
StructMapping
|| (element.Mapping.IsSoap && element.Mapping is PrimitiveMapping))
System\Xml\Serialization\XmlSerializationReaderILGen.cs (9)
197
if (mapping is
StructMapping
|| mapping is EnumMapping || mapping is NullableMapping)
209
if (mapping is
StructMapping
)
211
WriteStructMethod((
StructMapping
)mapping);
1131
private void WriteDerivedTypes(
StructMapping
mapping, bool isTypedReturn, string returnTypeName)
1133
for (
StructMapping
? derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping)
1319
private void WriteStructMethod(
StructMapping
structMapping)
1324
private void WriteLiteralStructMethod(
StructMapping
structMapping)
1566
StructMapping
? declaringMapping;
3122
else if (element.Mapping is
StructMapping
)
System\Xml\Serialization\XmlSerializationWriter.cs (13)
1697
if (mapping is
StructMapping
)
1699
StructMapping
structMapping = (mapping as
StructMapping
)!;
2262
if (mapping is
StructMapping
|| mapping is EnumMapping)
2279
if (mapping is
StructMapping
)
2280
WriteStructMethod((
StructMapping
)mapping);
2294
if (mapping is
StructMapping
)
2296
WriteStructMethod((
StructMapping
)mapping);
2339
(typeMapping is
StructMapping
|| typeMapping is EnumMapping) &&
2973
private void WriteDerivedTypes(
StructMapping
mapping)
2975
for (
StructMapping
? derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping)
3076
private void WriteStructMethod(
StructMapping
mapping)
4085
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)