32 references to IsValueType
System.Xml (32)
System\Xml\Serialization\Mappings.cs (2)
709
return element.IsNullable && element.Mapping.TypeDesc.
IsValueType
;
868
if (td.IsMappedType || (!td.
IsValueType
&& (Elements[0].IsSoap || td.ArrayElementTypeDesc == null)))
System\Xml\Serialization\SoapReflectionImporter.cs (3)
385
if (model.TypeDesc.
IsValueType
)
387
if (member.TypeDesc.
IsValueType
)
409
if (itemTypeMapping.TypeDesc.
IsValueType
&& !itemTypeMapping.TypeDesc.IsPrimitive && !itemTypeMapping.TypeDesc.IsEnum)
System\Xml\Serialization\SoapSchemaExporter.cs (1)
325
bool valueTypeOptional = member.CheckSpecified != SpecifiedAccessor.None || member.CheckShouldPersist || !member.TypeDesc.
IsValueType
;
System\Xml\Serialization\SoapSchemaImporter.cs (1)
509
if (element.MinOccurs == 0 && member.TypeDesc.
IsValueType
&& !member.TypeDesc.HasIsEmpty) {
System\Xml\Serialization\Types.cs (2)
300
get { return !
IsValueType
; }
343
if (!
IsValueType
&& !IsAbstract && !HasDefaultConstructor) {
System\Xml\Serialization\XmlCodeExporter.cs (1)
781
if (isNullable != null && (bool)isNullable && typeDesc.
IsValueType
&& !typeDesc.IsMappedType && CodeProvider.Supports(GeneratorSupport.GenericTypeReference)) {
System\Xml\Serialization\XmlSchemaExporter.cs (2)
658
if (!accessor.HasDefault && !valueTypeOptional && accessor.Mapping.TypeDesc.
IsValueType
) {
730
int minOccurs = repeats || accessor.HasDefault || (!accessor.IsNullable && !accessor.Mapping.TypeDesc.
IsValueType
) || valueTypeOptional ? 0 : 1;
System\Xml\Serialization\XmlSchemaImporter.cs (2)
1363
if (element.MinOccurs == 0 && member.TypeDesc.
IsValueType
&& !element.HasDefault && !member.TypeDesc.HasIsEmpty) {
1384
if ((attribute.Use == XmlSchemaUse.Optional || attribute.Use == XmlSchemaUse.None) && member.TypeDesc.
IsValueType
&& !attribute.HasDefault && !member.TypeDesc.HasIsEmpty) {
System\Xml\Serialization\XmlSerializationReader.cs (10)
2471
if (!mappings[i].TypeDesc.
IsValueType
)
2940
if (mapping.TypeDesc.
IsValueType
) {
3034
if (structMapping.TypeDesc.
IsValueType
) {
3952
if (e.Mapping.TypeDesc.
IsValueType
|| e.Mapping is NullableMapping) {
3969
if (e.Mapping.TypeDesc.
IsValueType
) {
4120
else if (typeDesc.
IsValueType
) {
4273
if (element.Mapping.TypeDesc.
IsValueType
) {
4285
if (element.Default != null && element.Default != DBNull.Value && element.Mapping.TypeDesc.
IsValueType
) {
4364
if (mapping.TypeDesc.
IsValueType
) {
4379
if (mapping.TypeDesc.
IsValueType
) {
System\Xml\Serialization\XmlSerializationReaderILGen.cs (6)
631
if (!mappings[i].TypeDesc.
IsValueType
)
1286
if (mapping.TypeDesc.
IsValueType
) {
1434
if (structMapping.TypeDesc.
IsValueType
) {
2702
else if (typeDesc.
IsValueType
) {
3025
if (element.Mapping.TypeDesc.
IsValueType
) {
3035
if (element.Default != null && element.Default != DBNull.Value && element.Mapping.TypeDesc.
IsValueType
) {
System\Xml\Serialization\XmlSerializationWriter.cs (1)
1814
if (!mapping.IsSoap && !mapping.TypeDesc.
IsValueType
&& !mapping.TypeDesc.Type.IsPrimitive) {
System\Xml\Serialization\XmlSerializationWriterILGen.cs (1)
532
if (!mapping.TypeDesc.
IsValueType
&& !mapping.TypeDesc.Type.IsPrimitive) {