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)
1143PrimitiveMapping mapping = new PrimitiveMapping();
System\Xml\Serialization\XmlSchemaImporter.cs (4)
40PrimitiveMapping mapping = new PrimitiveMapping(); 1554PrimitiveMapping mapping = new PrimitiveMapping(); 1790PrimitiveMapping mapping = new PrimitiveMapping(); 1806mapping = new PrimitiveMapping();
51 references to PrimitiveMapping
System.Private.Xml (51)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (3)
882else if (!element.Mapping!.IsSoap && (element.Mapping is PrimitiveMapping)) 934else if (element.Mapping is StructMapping || (element.Mapping.IsSoap && element.Mapping is PrimitiveMapping)) 1441if (mapping is StructMapping || mapping is ArrayMapping || mapping is PrimitiveMapping || mapping is NullableMapping)
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (5)
285if (text.Mapping is PrimitiveMapping primitiveMapping) 397else if (element.Mapping is PrimitiveMapping) 399var mapping = element.Mapping as PrimitiveMapping; 487private 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)
650if (mapping.BaseMapping is PrimitiveMapping && baseMapping is PrimitiveMapping) 1024else if (itemTypeMapping is PrimitiveMapping) 1141private static PrimitiveMapping ImportPrimitiveMapping(PrimitiveModel model, ImportContext context, string dataType, bool repeats) 1143PrimitiveMapping 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)
40PrimitiveMapping mapping = new PrimitiveMapping(); 1092if (!(mapping is PrimitiveMapping || mapping!.TypeDesc!.CanBeTextValue)) 1119PrimitiveMapping pm = (PrimitiveMapping)accessor.Mapping; 1554PrimitiveMapping mapping = new PrimitiveMapping(); 1673if (mapping != null && mapping is PrimitiveMapping) 1675((PrimitiveMapping)mapping).IsList = true; 1787private PrimitiveMapping ImportPrimitiveDataType(XmlSchemaSimpleType dataType, TypeFlags flags) 1790PrimitiveMapping mapping = new PrimitiveMapping(); 1797private static PrimitiveMapping? ImportNonXsdPrimitiveDataType(XmlSchemaSimpleType dataType, string? ns, TypeFlags flags) 1799PrimitiveMapping? mapping = null;
System\Xml\Serialization\XmlSerializationReader.cs (3)
3861if (mapping is StructMapping || mapping is ArrayMapping || mapping is PrimitiveMapping || mapping is NullableMapping) 4632else if (!element.Mapping!.IsSoap && (element.Mapping is PrimitiveMapping)) 4722else if (element.Mapping is StructMapping || (element.Mapping.IsSoap && element.Mapping is PrimitiveMapping))
System\Xml\Serialization\XmlSerializationReaderILGen.cs (1)
3026else if (element.Mapping is PrimitiveMapping)
System\Xml\Serialization\XmlSerializationWriter.cs (2)
3880if (text.Mapping is PrimitiveMapping primitive) 4071else if (element.Mapping is PrimitiveMapping primitiveMapping)
System\Xml\Serialization\XmlSerializationWriterILGen.cs (2)
1874if (text.Mapping is PrimitiveMapping primitiveMapping) 1999else if (element.Mapping is PrimitiveMapping primitiveMapping)