4 writes to Text
System.Private.Xml (4)
System\Xml\Serialization\XmlReflectionImporter.cs (2)
1655
accessor.
Text
= text;
1827
accessor.
Text
= text;
System\Xml\Serialization\XmlSchemaImporter.cs (2)
1140
member.
Text
= accessor;
1188
member.
Text
= text;
43 references to Text
System.Private.Xml (43)
System\Xml\Serialization\Mappings.cs (4)
858
if (
Text
== null)
860
return (mapping.
Text
== null);
869
if (
Text
!= null)
871
return (mapping.
Text
!= null);
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (6)
183
if (mapping.
Text
!= null)
201
else if (mapping.
Text
!= null)
213
if (mapping.Attribute == null && mapping.
Text
== null)
227
if (mapping.Attribute != null || mapping.
Text
!= null || foundAnyElement)
692
TextAccessor text = anyTextMapping.
Text
!;
1704
if (mapping.
Text
!= null)
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (3)
855
bool checkShouldPersist = m.CheckShouldPersist && (m.Elements!.Length > 0 || m.
Text
!= null);
871
WriteMember(memberValue, choiceSource, m.ElementsSortedByDerivation!, m.
Text
, m.ChoiceIdentifier, m.TypeDesc!, true);
1531
WriteMember(source, enumSource, member.ElementsSortedByDerivation!, member.
Text
, member.ChoiceIdentifier, member.TypeDesc!, writeAccessors || hasWrapperElement);
System\Xml\Serialization\XmlReflectionImporter.cs (8)
876
if (member.
Text
!= null && !memberDeclaredByBase)
878
if (!member.
Text
.Mapping!.TypeDesc!.CanBeTextValue && member.
Text
.Mapping.IsList)
879
throw new InvalidOperationException(SR.Format(SR.XmlIllegalTypedTextAttribute, typeName, member.
Text
.Name, member.
Text
.Mapping.TypeDesc.FullName));
884
textAccessor = member.
Text
;
1296
if (mapping.
Text
!= null)
1302
textAccessor = mapping.
Text
;
System\Xml\Serialization\XmlSchemaExporter.cs (4)
80
else if (member.
Text
!= null)
81
throw new InvalidOperationException(SR.Format(SR.XmlBareTextMember, member.
Text
.Name));
1042
if (member.
Text
!= null)
1048
textMapping = member.
Text
.Mapping;
System\Xml\Serialization\XmlSerializationReader.cs (6)
2597
if (mapping.
Text
!= null) anyText = anyMember;
2602
else if (mapping.
Text
!= null)
2612
if (mapping.Attribute == null && mapping.
Text
== null)
2619
if (mapping.Attribute != null || mapping.
Text
!= null || foundAnyElement)
3388
if (mapping.
Text
!= null)
4145
TextAccessor text = member.Mapping.
Text
!;
System\Xml\Serialization\XmlSerializationReaderILGen.cs (6)
536
if (mapping.
Text
!= null) anyText = anyMember;
541
else if (mapping.
Text
!= null)
551
if (mapping.Attribute == null && mapping.
Text
== null)
558
if (mapping.Attribute != null || mapping.
Text
!= null || foundAnyElement)
1624
if (mapping.
Text
!= null)
2392
TextAccessor text = member.Mapping.
Text
!;
System\Xml\Serialization\XmlSerializationWriter.cs (3)
2820
WriteMember(source, enumSource, member.ElementsSortedByDerivation!, member.
Text
, member.ChoiceIdentifier, member.TypeDesc!, writeAccessors || hasWrapperElement);
3276
bool checkShouldPersist = m.CheckShouldPersist && (m.Elements!.Length > 0 || m.
Text
!= null);
3303
WriteMember(RaCodeGen.GetStringForMember("o", m.Name, mapping.TypeDesc), choiceSource, m.ElementsSortedByDerivation!, m.
Text
, m.ChoiceIdentifier, m.TypeDesc!, true);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (3)
524
WriteMember(new SourceInfo(source, source, null, null, ilg), enumSource, member.ElementsSortedByDerivation!, member.
Text
, member.ChoiceIdentifier, member.TypeDesc!, writeAccessors || hasWrapperElement);
1105
bool checkShouldPersist = m.CheckShouldPersist && (m.Elements!.Length > 0 || m.
Text
!= null);
1127
WriteMember(ReflectionAwareILGen.GetSourceForMember("o", m, m.MemberInfo, ilg), choiceSource, m.ElementsSortedByDerivation!, m.
Text
, m.ChoiceIdentifier, m.TypeDesc!, true);