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