2 instantiations of NullableMapping
System.Xml (2)
System\Xml\Serialization\SoapReflectionImporter.cs (1)
283
mapping = new
NullableMapping
();
System\Xml\Serialization\XmlReflectionImporter.cs (1)
600
mapping = new
NullableMapping
();
43 references to NullableMapping
System.Xml (43)
System\Xml\Serialization\SoapReflectionImporter.cs (4)
263
NullableMapping
CreateNullableMapping(TypeMapping baseMapping, Type type) {
266
NullableMapping
mapping;
268
if (existingMapping is
NullableMapping
) {
269
mapping = (
NullableMapping
)existingMapping;
System\Xml\Serialization\SoapSchemaExporter.cs (3)
167
else if (mapping is
NullableMapping
)
168
return ExportTypeMapping(((
NullableMapping
)mapping).BaseMapping, ns);
261
element.IsNillable = accessor.IsNullable || accessor.Mapping is
NullableMapping
;
System\Xml\Serialization\XmlReflectionImporter.cs (9)
293
|| (existing.Mapping is
NullableMapping
&& accessor.Mapping.TypeDesc == ((
NullableMapping
)existing.Mapping).BaseMapping.TypeDesc)
294
|| (accessor.Mapping is
NullableMapping
&& ((
NullableMapping
)accessor.Mapping).BaseMapping.TypeDesc == existing.Mapping.TypeDesc))
571
NullableMapping
CreateNullableMapping(TypeMapping baseMapping, Type type) {
583
NullableMapping
mapping;
585
if (existingMapping is
NullableMapping
) {
586
mapping = (
NullableMapping
)existingMapping;
1928
if (mapping is
NullableMapping
) return;
System\Xml\Serialization\XmlSchemaExporter.cs (4)
350
else if (mapping is
NullableMapping
)
351
ExportMapping(((
NullableMapping
)mapping).BaseMapping, ns, isAny);
375
else if (mapping is
NullableMapping
) {
376
ExportElementMapping(element, ((
NullableMapping
)mapping).BaseMapping, ns, isAny);
System\Xml\Serialization\XmlSerializationReader.cs (14)
2128
if (mapping is StructMapping || mapping is EnumMapping || mapping is
NullableMapping
)
2142
else if (mapping is
NullableMapping
) {
2143
WriteNullableMethod((
NullableMapping
)mapping);
2160
else if (mapping is
NullableMapping
) {
2161
WriteNullableMethod((
NullableMapping
)mapping);
2255
(mapping is StructMapping || mapping is EnumMapping || mapping is ArrayMapping || mapping is
NullableMapping
) &&
2957
void WriteNullableMethod(
NullableMapping
nullableMapping) {
3608
if (mapping is StructMapping || mapping is ArrayMapping || mapping is PrimitiveMapping || mapping is
NullableMapping
) {
3926
if (e.Mapping is
NullableMapping
) {
3927
TypeDesc td = ((
NullableMapping
)e.Mapping).BaseMapping.TypeDesc;
3952
if (e.Mapping.TypeDesc.IsValueType || e.Mapping is
NullableMapping
) {
3958
if (e.Mapping is
NullableMapping
) {
3960
TypeDesc td = ((
NullableMapping
)e.Mapping).BaseMapping.TypeDesc;
4256
else if (element.Mapping is
NullableMapping
) {
System\Xml\Serialization\XmlSerializationReaderILGen.cs (5)
195
if (mapping is StructMapping || mapping is EnumMapping || mapping is
NullableMapping
)
213
else if (mapping is
NullableMapping
) {
214
WriteNullableMethod((
NullableMapping
)mapping);
1305
void WriteNullableMethod(
NullableMapping
nullableMapping) {
2992
else if (element.Mapping is
NullableMapping
) {
System\Xml\Serialization\XmlSerializationWriter.cs (2)
2749
if (element.Mapping is
NullableMapping
) {
2759
e.Mapping = ((
NullableMapping
)element.Mapping).BaseMapping;
System\Xml\Serialization\XmlSerializationWriterILGen.cs (2)
1848
if (element.Mapping is
NullableMapping
) {
1869
e.Mapping = ((
NullableMapping
)element.Mapping).BaseMapping;