5 references to CanBeTextValue
System.Private.Xml (5)
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\Types.cs (1)
216get { return _isMixed || CanBeTextValue; }
System\Xml\Serialization\XmlReflectionImporter.cs (2)
873if (!member.Text.Mapping!.TypeDesc!.CanBeTextValue && member.Text.Mapping.IsList) 1151if (typeDesc.CanBeTextValue || typeDesc.IsEnum || typeDesc.IsPrimitive)
System\Xml\Serialization\XmlSchemaImporter.cs (1)
1123if (!(mapping is PrimitiveMapping || mapping!.TypeDesc!.CanBeTextValue))