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