4 writes to Text
System.Private.Xml (4)
System\Xml\Serialization\XmlReflectionImporter.cs (2)
1635
accessor.
Text
= text;
1807
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)
844
if (
Text
== null)
846
return (mapping.
Text
== null);
855
if (
Text
!= null)
857
return (mapping.
Text
!= null);
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (6)
176
if (mapping.
Text
!= null)
194
else if (mapping.
Text
!= null)
206
if (mapping.Attribute == null && mapping.
Text
== null)
220
if (mapping.Attribute != null || mapping.
Text
!= null || foundAnyElement)
683
TextAccessor text = anyTextMapping.
Text
!;
1599
if (mapping.
Text
!= null)
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (3)
626
bool checkShouldPersist = m.CheckShouldPersist && (m.Elements!.Length > 0 || m.
Text
!= null);
642
WriteMember(memberValue, choiceSource, m.ElementsSortedByDerivation!, m.
Text
, m.ChoiceIdentifier, m.TypeDesc!, true);
1288
WriteMember(source, enumSource, member.ElementsSortedByDerivation!, member.
Text
, member.ChoiceIdentifier, member.TypeDesc!, writeAccessors || hasWrapperElement);
System\Xml\Serialization\XmlReflectionImporter.cs (8)
871
if (member.
Text
!= null)
873
if (!member.
Text
.Mapping!.TypeDesc!.CanBeTextValue && member.
Text
.Mapping.IsList)
874
throw new InvalidOperationException(SR.Format(SR.XmlIllegalTypedTextAttribute, typeName, member.
Text
.Name, member.
Text
.Mapping.TypeDesc.FullName));
879
textAccessor = member.
Text
;
1290
if (mapping.
Text
!= null)
1296
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));
1047
if (member.
Text
!= null)
1053
textMapping = member.
Text
.Mapping;
System\Xml\Serialization\XmlSerializationReader.cs (6)
2533
if (mapping.
Text
!= null) anyText = anyMember;
2538
else if (mapping.
Text
!= null)
2548
if (mapping.Attribute == null && mapping.
Text
== null)
2555
if (mapping.Attribute != null || mapping.
Text
!= null || foundAnyElement)
3324
if (mapping.
Text
!= null)
4074
TextAccessor text = member.Mapping.
Text
!;
System\Xml\Serialization\XmlSerializationReaderILGen.cs (6)
460
if (mapping.
Text
!= null) anyText = anyMember;
465
else if (mapping.
Text
!= null)
475
if (mapping.Attribute == null && mapping.
Text
== null)
482
if (mapping.Attribute != null || mapping.
Text
!= null || foundAnyElement)
1548
if (mapping.
Text
!= null)
2315
TextAccessor text = member.Mapping.
Text
!;
System\Xml\Serialization\XmlSerializationWriter.cs (3)
2773
WriteMember(source, enumSource, member.ElementsSortedByDerivation!, member.
Text
, member.ChoiceIdentifier, member.TypeDesc!, writeAccessors || hasWrapperElement);
3229
bool checkShouldPersist = m.CheckShouldPersist && (m.Elements!.Length > 0 || m.
Text
!= null);
3256
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);