33 references to IsValueType
System.Private.Xml (33)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (5)
293
if (!mappings[i].TypeDesc!.
IsValueType
)
859
if (element.Mapping.TypeDesc!.
IsValueType
)
868
else if ((element.Default != null && element.Default != DBNull.Value && element.Mapping.TypeDesc!.
IsValueType
)
916
if (!mapping.TypeDesc!.
IsValueType
|| rre != null)
1521
if (structMapping.TypeDesc.
IsValueType
)
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (1)
104
if (!mapping.TypeDesc!.
IsValueType
&& !mapping.TypeDesc.Type!.IsPrimitive)
System\Xml\Serialization\SoapReflectionImporter.cs (3)
400
if (model.TypeDesc.
IsValueType
)
402
if (member.TypeDesc.
IsValueType
)
425
if (itemTypeMapping.TypeDesc!.
IsValueType
&& !itemTypeMapping.TypeDesc.IsPrimitive && !itemTypeMapping.TypeDesc.IsEnum)
System\Xml\Serialization\Types.cs (2)
337
get { return !
IsValueType
; }
389
if (!
IsValueType
&& !IsAbstract && !HasDefaultConstructor)
System\Xml\Serialization\XmlSchemaExporter.cs (2)
728
if (!accessor.HasDefault && !valueTypeOptional && accessor.Mapping!.TypeDesc!.
IsValueType
)
815
int minOccurs = repeats || accessor.HasDefault || (!accessor.IsNullable && !accessor.Mapping!.TypeDesc!.
IsValueType
) || valueTypeOptional ? 0 : 1;
System\Xml\Serialization\XmlSchemaImporter.cs (2)
1455
if (element.MinOccurs == 0 && member.TypeDesc!.
IsValueType
&& !element.HasDefault && !member.TypeDesc.HasIsEmpty)
1481
if ((attribute.Use == XmlSchemaUse.Optional || attribute.Use == XmlSchemaUse.None) && member.TypeDesc!.
IsValueType
&& !attribute.HasDefault && !member.TypeDesc.HasIsEmpty)
System\Xml\Serialization\XmlSerializationReader.cs (10)
2631
if (!mappings[i].TypeDesc!.
IsValueType
)
3142
if (arrayMapping.TypeDesc.
IsValueType
)
3243
if (structMapping.TypeDesc.
IsValueType
)
4278
if (e.Mapping!.TypeDesc!.
IsValueType
|| e.Mapping is NullableMapping)
4298
if (e.Mapping.TypeDesc.
IsValueType
)
4477
else if (typeDesc.
IsValueType
)
4650
if (element.Mapping.TypeDesc!.
IsValueType
)
4664
if (element.Default != null && element.Default != DBNull.Value && element.Mapping.TypeDesc!.
IsValueType
)
4755
if (mapping.TypeDesc!.
IsValueType
)
4771
if (mapping.TypeDesc.
IsValueType
)
System\Xml\Serialization\XmlSerializationReaderILGen.cs (6)
616
if (!mappings[i].TypeDesc!.
IsValueType
)
1254
if (arrayMapping.TypeDesc.
IsValueType
)
1403
if (structMapping.TypeDesc.
IsValueType
)
2666
else if (typeDesc.
IsValueType
)
3008
if (element.Mapping.TypeDesc!.
IsValueType
)
3020
if (element.Default != null && element.Default != DBNull.Value && element.Mapping.TypeDesc!.
IsValueType
)
System\Xml\Serialization\XmlSerializationWriter.cs (1)
2840
if (!mapping.IsSoap && !mapping.TypeDesc!.
IsValueType
&& !mapping.TypeDesc.Type!.IsPrimitive)
System\Xml\Serialization\XmlSerializationWriterILGen.cs (1)
574
if (!mapping.TypeDesc!.
IsValueType
&& !mapping.TypeDesc.Type!.IsPrimitive)