13 references to IsPrimitive
System.Private.Xml (13)
System\Xml\Serialization\Mappings.cs (1)
637if (!_hasSimpleContent && text != null && !text.Mapping!.TypeDesc!.CanBeTextValue && !(BaseMapping != null && !BaseMapping.TypeDesc!.IsRoot && (text.Mapping.TypeDesc.IsEnum || text.Mapping.TypeDesc.IsPrimitive)))
System\Xml\Serialization\SoapReflectionImporter.cs (5)
167if (!model.TypeDesc.IsPrimitive) 398if (!member.TypeDesc!.IsPrimitive && !member.TypeDesc.IsEnum && !member.TypeDesc.IsOptionalValue) 425if (itemTypeMapping.TypeDesc!.IsValueType && !itemTypeMapping.TypeDesc.IsPrimitive && !itemTypeMapping.TypeDesc.IsEnum) 696if (!accessor.TypeDesc.IsPrimitive && !accessor.TypeDesc.IsEnum) 766if (typeDesc.IsPrimitive && typeDesc.DataType != null && typeDesc.DataType.Name != null && typeDesc.DataType.Name.Length > 0)
System\Xml\Serialization\Types.cs (1)
931if (directReference && (td.IsCollection || td.IsEnumerable) && !td.IsPrimitive)
System\Xml\Serialization\XmlReflectionImporter.cs (6)
405if (!modelTypeDesc.IsPrimitive) 961if (typeDesc.IsPrimitive && typeDesc.DataType != null && typeDesc.DataType.Name != null && typeDesc.DataType.Name.Length > 0) 1151if (typeDesc.CanBeTextValue || typeDesc.IsEnum || typeDesc.IsPrimitive) 1578if (a.XmlAttribute != null && !accessor.TypeDesc.ArrayElementTypeDesc!.IsPrimitive && !accessor.TypeDesc.ArrayElementTypeDesc.IsEnum) 1590bool isList = a.XmlAttribute != null && (accessor.TypeDesc.ArrayElementTypeDesc!.IsPrimitive || accessor.TypeDesc.ArrayElementTypeDesc.IsEnum); 1770if (accessor.TypeDesc.IsPrimitive || accessor.TypeDesc.IsEnum)