3 instantiations of ArrayMapping
System.Private.Xml (3)
System\Xml\Serialization\SoapReflectionImporter.cs (1)
421
ArrayMapping mapping = new
ArrayMapping
();
System\Xml\Serialization\XmlReflectionImporter.cs (1)
1095
ArrayMapping mapping = new
ArrayMapping
();
System\Xml\Serialization\XmlSchemaImporter.cs (1)
1282
ArrayMapping arrayMapping = new
ArrayMapping
();
97 references to ArrayMapping
System.Private.Xml (97)
System\Xml\Serialization\Mappings.cs (2)
384
private
ArrayMapping
? _next;
409
internal
ArrayMapping
? Next
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (7)
39
(mapping is StructMapping || mapping is EnumMapping || mapping is
ArrayMapping
|| mapping is NullableMapping) &&
225
&& !(mapping.Elements!.Length == 1 && mapping.Elements[0].Mapping is
ArrayMapping
))
847
if (element.Mapping is
ArrayMapping
arrayMapping)
1078
private object? WriteArray(
ArrayMapping
arrayMapping, bool readOnly, int fixupIndex = -1, Fixup? fixup = null, Member? member = null)
1400
if (mapping is StructMapping || mapping is
ArrayMapping
|| mapping is PrimitiveMapping || mapping is NullableMapping)
1634
if (member.Source == null && mapping.TypeDesc.IsArrayLike && !(mapping.Elements!.Length == 1 && mapping.Elements[0].Mapping is
ArrayMapping
))
1789
if (m is
ArrayMapping
arrayMapping)
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (5)
119
!(elements.Length == 1 && elements[0].Mapping is
ArrayMapping
))
334
else if (element.Mapping is
ArrayMapping
)
336
var
mapping = element.Mapping as
ArrayMapping
;
675
if (m is
ArrayMapping
am && am.TypeDesc!.Type == objType)
System\Xml\Serialization\SoapReflectionImporter.cs (8)
419
private
ArrayMapping
ImportArrayLikeMapping(ArrayModel model, RecursionLimiter limiter)
421
ArrayMapping
mapping = new ArrayMapping();
436
ArrayMapping
? existingMapping = (
ArrayMapping
?)_types[mapping.TypeName!, mapping.Namespace];
439
ArrayMapping
first = existingMapping;
457
private void SetArrayMappingType(
ArrayMapping
mapping)
495
else if (itemTypeMapping is
ArrayMapping
)
512
if (existingMapping is
ArrayMapping
arrayMapping)
System\Xml\Serialization\XmlReflectionImporter.cs (18)
348
if (accessor.Mapping is
ArrayMapping
)
350
if (!(existing.Mapping is
ArrayMapping
))
354
ArrayMapping
mapping = (
ArrayMapping
)accessor.Mapping;
355
ArrayMapping
? existingMapping = mapping.IsAnonymousType ? null : (
ArrayMapping
?)_types[existing.Mapping.TypeName!, existing.Mapping.Namespace];
356
ArrayMapping
? first = existingMapping;
438
ArrayMapping
arrayMapping = ImportArrayLikeMapping((ArrayModel)model, ns, limiter);
1004
private void SetArrayMappingType(
ArrayMapping
mapping, string? defaultNs, Type type)
1075
if (existingMapping is
ArrayMapping
arrayMapping)
1093
private
ArrayMapping
ImportArrayLikeMapping(ArrayModel model, string? ns, RecursionLimiter limiter)
1095
ArrayMapping
mapping = new ArrayMapping();
1115
ArrayMapping
? existingMapping = (
ArrayMapping
?)_types[mapping.TypeName, mapping.Namespace];
1118
ArrayMapping
? first = existingMapping;
1503
private void CreateArrayElementsFromAttributes(
ArrayMapping
arrayMapping, XmlArrayItemAttributes attributes, Type arrayElementType, string? arrayElementNs, RecursionLimiter limiter)
1746
ArrayMapping
arrayMapping = ImportArrayLikeMapping(_modelScope.GetArrayModel(accessorType), ns, limiter);
1977
if (accessor.TypeDesc.IsArrayLike && accessor.Elements.Length > 0 && !(accessor.Elements[0].Mapping is
ArrayMapping
))
System\Xml\Serialization\XmlSchemaExporter.cs (10)
85
if (member.TypeDesc!.IsArrayLike && !(member.Elements[0].Mapping is
ArrayMapping
))
349
if (mapping is
ArrayMapping
)
350
ExportArrayMapping((
ArrayMapping
)mapping, ns, null);
369
if (mapping is
ArrayMapping
)
370
ExportArrayMapping((
ArrayMapping
)mapping, ns, element);
588
private void ExportArrayMapping(
ArrayMapping
mapping, string? ns, XmlSchemaElement? element)
595
ArrayMapping
currentMapping = mapping;
948
else if (mapping is
ArrayMapping
)
950
ExportArrayMapping((
ArrayMapping
)mapping, mapping.Namespace, null);
1058
!(member.Elements.Length == 1 && member.Elements[0].Mapping is
ArrayMapping
);
System\Xml\Serialization\XmlSchemaImporter.cs (20)
62
if (element.Mapping is
ArrayMapping
)
65
element.Mapping = ((
ArrayMapping
)element.Mapping).TopLevelMapping;
115
if (accessor.Mapping is
ArrayMapping
)
118
accessor.Mapping = ((
ArrayMapping
)accessor.Mapping).TopLevelMapping;
272
if (element.IsMultipleOccurrence && topAccessor.Mapping is
ArrayMapping
)
507
else if (baseMapping is
ArrayMapping
)
509
baseMapping = ((
ArrayMapping
)baseMapping).TopLevelMapping;
534
else if (arrayLike && previousMapping is
ArrayMapping
)
536
ArrayMapping
arrayMapping = (
ArrayMapping
)previousMapping;
801
ArrayMapping
? arrayMapping = element.Mapping as
ArrayMapping
;
881
private static bool IsNeedXmlSerializationAttributes(
ArrayMapping
arrayMapping)
1246
ArrayMapping
? arrayMapping = ImportArrayMapping(type, identifier, ns);
1260
private
ArrayMapping
? ImportArrayMapping(XmlSchemaType type, string identifier, string? ns)
1269
if (previousMapping is
ArrayMapping
)
1270
return (
ArrayMapping
)previousMapping;
1282
ArrayMapping
arrayMapping = new ArrayMapping();
1446
if (!allowUnboundedElements && accessor.Mapping is
ArrayMapping
)
1448
accessor.Mapping = ((
ArrayMapping
)accessor.Mapping).TopLevelMapping!;
System\Xml\Serialization\XmlSerializationReader.cs (10)
2390
(mapping is StructMapping || mapping is EnumMapping || mapping is
ArrayMapping
|| mapping is NullableMapping) &&
2394
if (mapping is
ArrayMapping
)
2557
else if (mapping.TypeDesc!.IsArrayLike && !(mapping.Elements!.Length == 1 && mapping.Elements[0].Mapping is
ArrayMapping
))
3117
else if (m is
ArrayMapping
arrayMapping)
3346
if (mapping.Attribute == null && mapping.Elements!.Length == 1 && mapping.Elements[0].Mapping is
ArrayMapping
)
3360
if (mapping.TypeDesc.IsArrayLike && !(mapping.Elements!.Length == 1 && mapping.Elements[0].Mapping is
ArrayMapping
))
3872
if (mapping is StructMapping || mapping is
ArrayMapping
|| mapping is PrimitiveMapping || mapping is NullableMapping)
4516
private void WriteArray(string source, string? arrayName,
ArrayMapping
arrayMapping, bool readOnly, bool isNullable, int fixupIndex)
4626
if (element.Mapping is
ArrayMapping
)
4628
WriteArray(source, arrayName, (
ArrayMapping
)element.Mapping, readOnly, element.IsNullable, fixupIndex);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (7)
484
else if (mapping.TypeDesc!.IsArrayLike && !(mapping.Elements!.Length == 1 && mapping.Elements[0].Mapping is
ArrayMapping
))
1237
else if (m is
ArrayMapping
arrayMapping)
1570
if (mapping.Attribute == null && mapping.Elements!.Length == 1 && mapping.Elements[0].Mapping is
ArrayMapping
)
1584
if (mapping.TypeDesc.IsArrayLike && !(mapping.Elements!.Length == 1 && mapping.Elements[0].Mapping is
ArrayMapping
))
2847
private void WriteArray(string source, string? arrayName,
ArrayMapping
arrayMapping, bool readOnly, bool isNullable, int elementIndex)
2970
if (element.Mapping is
ArrayMapping
)
2972
WriteArray(source, arrayName, (
ArrayMapping
)element.Mapping, readOnly, element.IsNullable, elementIndex);
System\Xml\Serialization\XmlSerializationWriter.cs (5)
3044
else if (m is
ArrayMapping
&& !m.IsSoap)
3046
ArrayMapping
? mapping = m as
ArrayMapping
;
3487
!(elements.Length == 1 && elements[0].Mapping is
ArrayMapping
))
3938
else if (element.Mapping is
ArrayMapping
arrayMapping)
System\Xml\Serialization\XmlSerializationWriterILGen.cs (5)
854
else if (m is
ArrayMapping
)
856
ArrayMapping
? mapping = m as
ArrayMapping
;
1407
!(elements.Length == 1 && elements[0].Mapping is
ArrayMapping
))
1930
else if (element.Mapping is
ArrayMapping
arrayMapping)