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