16 references to IsValueType
dotnet-svcutil-lib (16)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (2)
846
return element.IsNullable && element.Mapping.TypeDesc.
IsValueType
;
1032
if (td.IsMappedType || (!td.
IsValueType
&& (Elements[0].IsSoap || td.ArrayElementTypeDesc == null)))
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (3)
429
if (model.TypeDesc.
IsValueType
)
431
if (member.TypeDesc.
IsValueType
)
454
if (itemTypeMapping.TypeDesc.
IsValueType
&& !itemTypeMapping.TypeDesc.IsPrimitive && !itemTypeMapping.TypeDesc.IsEnum)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaExporter.cs (1)
376
bool valueTypeOptional = member.CheckSpecified != SpecifiedAccessor.None || member.CheckShouldPersist || !member.TypeDesc.
IsValueType
;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (1)
571
if (element.MinOccurs == 0 && member.TypeDesc.
IsValueType
&& !member.TypeDesc.HasIsEmpty)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (2)
346
get { return !
IsValueType
; }
399
if (!
IsValueType
&& !IsAbstract && !HasDefaultConstructor)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (1)
900
if (isNullable != null && (bool)isNullable && typeDesc.
IsValueType
&& !typeDesc.IsMappedType && CodeProvider.Supports(GeneratorSupport.GenericTypeReference))
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (2)
768
if (!accessor.HasDefault && !valueTypeOptional && accessor.Mapping.TypeDesc.
IsValueType
)
856
int minOccurs = repeats || accessor.HasDefault || (!accessor.IsNullable && !accessor.Mapping.TypeDesc.
IsValueType
) || valueTypeOptional ? 0 : 1;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (2)
1562
if (element.MinOccurs == 0 && member.TypeDesc.
IsValueType
&& !element.HasDefault && !member.TypeDesc.HasIsEmpty)
1586
if ((attribute.Use == XmlSchemaUse.Optional || attribute.Use == XmlSchemaUse.None) && member.TypeDesc.
IsValueType
&& !attribute.HasDefault && !member.TypeDesc.HasIsEmpty)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (1)
2107
if (!mapping.IsSoap && !mapping.TypeDesc.
IsValueType
&& !mapping.TypeDesc.Type.GetTypeInfo().IsPrimitive)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (1)
588
if (!mapping.TypeDesc.
IsValueType
&& !mapping.TypeDesc.Type.GetTypeInfo().IsPrimitive)