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