4 writes to Text
System.Xml (4)
System\Xml\Serialization\XmlReflectionImporter.cs (2)
1415
accessor.
Text
= text;
1569
accessor.
Text
= text;
System\Xml\Serialization\XmlSchemaImporter.cs (2)
1072
member.
Text
= accessor;
1113
member.
Text
= text;
41 references to Text
System.Xml (41)
System\Xml\Serialization\Mappings.cs (4)
746
if (
Text
== null) {
747
return (mapping.
Text
== null);
755
if (
Text
!= null) {
756
return (mapping.
Text
!= null);
System\Xml\Serialization\XmlCodeExporter.cs (7)
94
if (mapping.
Text
!= null) {
95
ExportType(mapping.
Text
.Mapping, Accessor.UnescapeName(mapping.
Text
.Name), mapping.
Text
.Namespace, null, false);
548
EnsureTypesExported(mapping.Members[i].
Text
, mapping.Namespace);
641
if (member.
Text
!= null) {
642
TypeMapping mapping = (TypeMapping)member.
Text
.Mapping;
System\Xml\Serialization\XmlReflectionImporter.cs (8)
763
if (member.
Text
!= null) {
764
if (!member.
Text
.Mapping.TypeDesc.CanBeTextValue && member.
Text
.Mapping.IsList)
765
throw new InvalidOperationException(Res.GetString(Res.XmlIllegalTypedTextAttribute, typeName, member.
Text
.Name, member.
Text
.Mapping.TypeDesc.FullName));
769
textAccesor = member.
Text
;
1122
if (mapping.
Text
!= null) {
1126
textAccessor = mapping.
Text
;
System\Xml\Serialization\XmlSchemaExporter.cs (4)
94
else if (member.
Text
!= null)
95
throw new InvalidOperationException(Res.GetString(Res.XmlBareTextMember, member.
Text
.Name));
930
if (member.
Text
!= null) {
934
textMapping = member.
Text
.Mapping;
System\Xml\Serialization\XmlSerializationReader.cs (6)
2384
if (mapping.
Text
!= null) anyText = anyMember;
2389
else if (mapping.
Text
!= null)
2396
if (mapping.Attribute == null && mapping.
Text
== null)
2403
if (mapping.Attribute != null || mapping.
Text
!= null || foundAnyElement)
3106
if (mapping.
Text
!= null)
3789
TextAccessor text = member.Mapping.
Text
;
System\Xml\Serialization\XmlSerializationReaderILGen.cs (6)
475
if (mapping.
Text
!= null) anyText = anyMember;
480
else if (mapping.
Text
!= null)
487
if (mapping.Attribute == null && mapping.
Text
== null)
494
if (mapping.Attribute != null || mapping.
Text
!= null || foundAnyElement)
1580
if (mapping.
Text
!= null)
2368
TextAccessor text = member.Mapping.
Text
;
System\Xml\Serialization\XmlSerializationWriter.cs (3)
1754
WriteMember(source, enumSource, member.ElementsSortedByDerivation, member.
Text
, member.ChoiceIdentifier, member.TypeDesc, writeAccessors || hasWrapperElement);
2158
bool checkShouldPersist = m.CheckShouldPersist && (m.Elements.Length > 0 || m.
Text
!= null);
2182
WriteMember(RaCodeGen.GetStringForMember("o", m.Name, mapping.TypeDesc), choiceSource, m.ElementsSortedByDerivation, m.
Text
, m.ChoiceIdentifier, m.TypeDesc, true);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (3)
484
WriteMember(new SourceInfo(source, source, null, null, ilg), enumSource, member.ElementsSortedByDerivation, member.
Text
, member.ChoiceIdentifier, member.TypeDesc, writeAccessors || hasWrapperElement);
1067
bool checkShouldPersist = m.CheckShouldPersist && (m.Elements.Length > 0 || m.
Text
!= null);
1086
WriteMember(RaCodeGen.GetSourceForMember("o", m, m.MemberInfo, mapping.TypeDesc, ilg), choiceSource, m.ElementsSortedByDerivation, m.
Text
, m.ChoiceIdentifier, m.TypeDesc, true);