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