2 instantiations of NullableMapping
System.Private.Xml (2)
System\Xml\Serialization\SoapReflectionImporter.cs (1)
284mapping = new NullableMapping();
System\Xml\Serialization\XmlReflectionImporter.cs (1)
682mapping = new NullableMapping();
47 references to NullableMapping
System.Private.Xml (47)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (6)
39(mapping is StructMapping || mapping is EnumMapping || mapping is ArrayMapping || mapping is NullableMapping) && 767if (ele.Mapping is NullableMapping nullableMapping) 851else if (element.Mapping is NullableMapping nullableMapping) 1032else if (mapping is NullableMapping nullableMapping) 1236private object? WriteNullableMethod(NullableMapping nullableMapping, string? defaultNamespace) 1400if (mapping is StructMapping || mapping is ArrayMapping || mapping is PrimitiveMapping || mapping is NullableMapping)
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (1)
321if (element.Mapping is NullableMapping nullableMapping)
System\Xml\Serialization\SoapReflectionImporter.cs (4)
257private NullableMapping CreateNullableMapping(TypeMapping baseMapping, 262NullableMapping mapping; 265if (existingMapping is NullableMapping) 267mapping = (NullableMapping)existingMapping;
System\Xml\Serialization\XmlReflectionImporter.cs (9)
331|| (existing.Mapping is NullableMapping && accessor.Mapping.TypeDesc == ((NullableMapping)existing.Mapping).BaseMapping!.TypeDesc) 332|| (accessor.Mapping is NullableMapping && ((NullableMapping)accessor.Mapping).BaseMapping!.TypeDesc == existing.Mapping.TypeDesc)) 646private NullableMapping CreateNullableMapping(TypeMapping baseMapping, 660NullableMapping mapping; 663if (existingMapping is NullableMapping) 665mapping = (NullableMapping)existingMapping; 2231if (mapping is NullableMapping) return;
System\Xml\Serialization\XmlSchemaExporter.cs (4)
361else if (mapping is NullableMapping) 362ExportMapping(((NullableMapping)mapping).BaseMapping!, ns, isAny); 390else if (mapping is NullableMapping) 392ExportElementMapping(element, ((NullableMapping)mapping).BaseMapping!, ns, isAny);
System\Xml\Serialization\XmlSerializationReader.cs (14)
2244if (mapping is StructMapping || mapping is EnumMapping || mapping is NullableMapping) 2260else if (mapping is NullableMapping) 2262WriteNullableMethod((NullableMapping)mapping); 2283else if (mapping is NullableMapping) 2285WriteNullableMethod((NullableMapping)mapping); 2390(mapping is StructMapping || mapping is EnumMapping || mapping is ArrayMapping || mapping is NullableMapping) && 3160private void WriteNullableMethod(NullableMapping nullableMapping) 3872if (mapping is StructMapping || mapping is ArrayMapping || mapping is PrimitiveMapping || mapping is NullableMapping) 4246if (e.Mapping is NullableMapping) 4248TypeDesc td = ((NullableMapping)e.Mapping).BaseMapping!.TypeDesc!; 4278if (e.Mapping!.TypeDesc!.IsValueType || e.Mapping is NullableMapping) 4285if (e.Mapping is NullableMapping) 4288TypeDesc td = ((NullableMapping)e.Mapping).BaseMapping!.TypeDesc!; 4630else if (element.Mapping is NullableMapping)
System\Xml\Serialization\XmlSerializationReaderILGen.cs (5)
197if (mapping is StructMapping || mapping is EnumMapping || mapping is NullableMapping) 217else if (mapping is NullableMapping) 219WriteNullableMethod((NullableMapping)mapping); 1274private void WriteNullableMethod(NullableMapping nullableMapping) 2974else if (element.Mapping is NullableMapping)
System\Xml\Serialization\XmlSerializationWriter.cs (2)
3914if (element.Mapping is NullableMapping) 3925e.Mapping = ((NullableMapping)element.Mapping).BaseMapping;
System\Xml\Serialization\XmlSerializationWriterILGen.cs (2)
1900if (element.Mapping is NullableMapping) 1921e.Mapping = ((NullableMapping)element.Mapping).BaseMapping;