1 type derived from PrimitiveMapping
System.Private.Xml (1)
System\Xml\Serialization\Mappings.cs (1)
422internal sealed class EnumMapping : PrimitiveMapping
6 instantiations of PrimitiveMapping
System.Private.Xml (6)
System\Xml\Serialization\SoapReflectionImporter.cs (1)
530PrimitiveMapping mapping = new PrimitiveMapping();
System\Xml\Serialization\XmlReflectionImporter.cs (1)
1162PrimitiveMapping mapping = new PrimitiveMapping();
System\Xml\Serialization\XmlSchemaImporter.cs (4)
43PrimitiveMapping mapping = new PrimitiveMapping(); 1590PrimitiveMapping mapping = new PrimitiveMapping(); 1830PrimitiveMapping mapping = new PrimitiveMapping(); 1846mapping = new PrimitiveMapping();
51 references to PrimitiveMapping
System.Private.Xml (51)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (3)
855else if (!element.Mapping!.IsSoap && (element.Mapping is PrimitiveMapping)) 907else if (element.Mapping is StructMapping || (element.Mapping.IsSoap && element.Mapping is PrimitiveMapping)) 1400if (mapping is StructMapping || mapping is ArrayMapping || mapping is PrimitiveMapping || mapping is NullableMapping)
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (5)
279if (text.Mapping is PrimitiveMapping primitiveMapping) 390else if (element.Mapping is PrimitiveMapping) 392var mapping = element.Mapping as PrimitiveMapping; 477private void WriteQualifiedNameElement(string name, string ns, object? defaultValue, XmlQualifiedName o, bool nullable, bool isSoap, PrimitiveMapping mapping)
System\Xml\Serialization\SoapReflectionImporter.cs (6)
268if (mapping.BaseMapping is PrimitiveMapping && baseMapping is PrimitiveMapping) 279else if (!(baseMapping is PrimitiveMapping)) 475else if (itemTypeMapping is PrimitiveMapping) 528private static PrimitiveMapping ImportPrimitiveMapping(PrimitiveModel model, string dataType) 530PrimitiveMapping mapping = new PrimitiveMapping();
System\Xml\Serialization\XmlReflectionImporter.cs (5)
666if (mapping.BaseMapping is PrimitiveMapping && baseMapping is PrimitiveMapping) 1042else if (itemTypeMapping is PrimitiveMapping) 1160private static PrimitiveMapping ImportPrimitiveMapping(PrimitiveModel model, ImportContext context, string dataType, bool repeats) 1162PrimitiveMapping mapping = new PrimitiveMapping();
System\Xml\Serialization\XmlSchemaExporter.cs (13)
351else if (mapping is PrimitiveMapping) 353ExportPrimitiveMapping((PrimitiveMapping)mapping, ns); 371else if (mapping is PrimitiveMapping pm) 398private XmlQualifiedName ExportNonXsdPrimitiveMapping(PrimitiveMapping mapping, string? ns) 554private XmlSchemaSimpleType ExportAnonymousPrimitiveMapping(PrimitiveMapping mapping) 566private XmlQualifiedName ExportPrimitiveMapping(PrimitiveMapping mapping, string? ns) 761if (accessor.Mapping is PrimitiveMapping pm) 865if (!(mapping is PrimitiveMapping)) 908PrimitiveMapping pm = (PrimitiveMapping)mapping; 1085if (textMapping is PrimitiveMapping && seq.Items.Count == 0) 1087PrimitiveMapping pm = (PrimitiveMapping)textMapping;
System\Xml\Serialization\XmlSchemaImporter.cs (11)
43PrimitiveMapping mapping = new PrimitiveMapping(); 1123if (!(mapping is PrimitiveMapping || mapping!.TypeDesc!.CanBeTextValue)) 1150PrimitiveMapping pm = (PrimitiveMapping)accessor.Mapping; 1590PrimitiveMapping mapping = new PrimitiveMapping(); 1711if (mapping != null && mapping is PrimitiveMapping) 1713((PrimitiveMapping)mapping).IsList = true; 1827private PrimitiveMapping ImportPrimitiveDataType(XmlSchemaSimpleType dataType, TypeFlags flags) 1830PrimitiveMapping mapping = new PrimitiveMapping(); 1837private static PrimitiveMapping? ImportNonXsdPrimitiveDataType(XmlSchemaSimpleType dataType, string? ns, TypeFlags flags) 1839PrimitiveMapping? mapping = null;
System\Xml\Serialization\XmlSerializationReader.cs (3)
3872if (mapping is StructMapping || mapping is ArrayMapping || mapping is PrimitiveMapping || mapping is NullableMapping) 4643else if (!element.Mapping!.IsSoap && (element.Mapping is PrimitiveMapping)) 4733else if (element.Mapping is StructMapping || (element.Mapping.IsSoap && element.Mapping is PrimitiveMapping))
System\Xml\Serialization\XmlSerializationReaderILGen.cs (1)
2994else if (element.Mapping is PrimitiveMapping)
System\Xml\Serialization\XmlSerializationWriter.cs (2)
3882if (text.Mapping is PrimitiveMapping primitive) 4073else if (element.Mapping is PrimitiveMapping primitiveMapping)
System\Xml\Serialization\XmlSerializationWriterILGen.cs (2)
1851if (text.Mapping is PrimitiveMapping primitiveMapping) 1975else if (element.Mapping is PrimitiveMapping primitiveMapping)