4 writes to Text
System.Private.Xml (4)
System\Xml\Serialization\XmlReflectionImporter.cs (2)
1635accessor.Text = text; 1807accessor.Text = text;
System\Xml\Serialization\XmlSchemaImporter.cs (2)
1140member.Text = accessor; 1188member.Text = text;
43 references to Text
System.Private.Xml (43)
System\Xml\Serialization\Mappings.cs (4)
844if (Text == null) 846return (mapping.Text == null); 855if (Text != null) 857return (mapping.Text != null);
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (6)
176if (mapping.Text != null) 194else if (mapping.Text != null) 206if (mapping.Attribute == null && mapping.Text == null) 220if (mapping.Attribute != null || mapping.Text != null || foundAnyElement) 683TextAccessor text = anyTextMapping.Text!; 1599if (mapping.Text != null)
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (3)
626bool checkShouldPersist = m.CheckShouldPersist && (m.Elements!.Length > 0 || m.Text != null); 642WriteMember(memberValue, choiceSource, m.ElementsSortedByDerivation!, m.Text, m.ChoiceIdentifier, m.TypeDesc!, true); 1288WriteMember(source, enumSource, member.ElementsSortedByDerivation!, member.Text, member.ChoiceIdentifier, member.TypeDesc!, writeAccessors || hasWrapperElement);
System\Xml\Serialization\XmlReflectionImporter.cs (8)
871if (member.Text != null) 873if (!member.Text.Mapping!.TypeDesc!.CanBeTextValue && member.Text.Mapping.IsList) 874throw new InvalidOperationException(SR.Format(SR.XmlIllegalTypedTextAttribute, typeName, member.Text.Name, member.Text.Mapping.TypeDesc.FullName)); 879textAccessor = member.Text; 1290if (mapping.Text != null) 1296textAccessor = mapping.Text;
System\Xml\Serialization\XmlSchemaExporter.cs (4)
80else if (member.Text != null) 81throw new InvalidOperationException(SR.Format(SR.XmlBareTextMember, member.Text.Name)); 1047if (member.Text != null) 1053textMapping = member.Text.Mapping;
System\Xml\Serialization\XmlSerializationReader.cs (6)
2533if (mapping.Text != null) anyText = anyMember; 2538else if (mapping.Text != null) 2548if (mapping.Attribute == null && mapping.Text == null) 2555if (mapping.Attribute != null || mapping.Text != null || foundAnyElement) 3324if (mapping.Text != null) 4074TextAccessor text = member.Mapping.Text!;
System\Xml\Serialization\XmlSerializationReaderILGen.cs (6)
460if (mapping.Text != null) anyText = anyMember; 465else if (mapping.Text != null) 475if (mapping.Attribute == null && mapping.Text == null) 482if (mapping.Attribute != null || mapping.Text != null || foundAnyElement) 1548if (mapping.Text != null) 2315TextAccessor text = member.Mapping.Text!;
System\Xml\Serialization\XmlSerializationWriter.cs (3)
2773WriteMember(source, enumSource, member.ElementsSortedByDerivation!, member.Text, member.ChoiceIdentifier, member.TypeDesc!, writeAccessors || hasWrapperElement); 3229bool checkShouldPersist = m.CheckShouldPersist && (m.Elements!.Length > 0 || m.Text != null); 3256WriteMember(RaCodeGen.GetStringForMember("o", m.Name, mapping.TypeDesc), choiceSource, m.ElementsSortedByDerivation!, m.Text, m.ChoiceIdentifier, m.TypeDesc!, true);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (3)
524WriteMember(new SourceInfo(source, source, null, null, ilg), enumSource, member.ElementsSortedByDerivation!, member.Text, member.ChoiceIdentifier, member.TypeDesc!, writeAccessors || hasWrapperElement); 1105bool checkShouldPersist = m.CheckShouldPersist && (m.Elements!.Length > 0 || m.Text != null); 1127WriteMember(ReflectionAwareILGen.GetSourceForMember("o", m, m.MemberInfo, ilg), choiceSource, m.ElementsSortedByDerivation!, m.Text, m.ChoiceIdentifier, m.TypeDesc!, true);