5 writes to Attribute
System.Private.Xml (5)
System\Xml\Serialization\SoapReflectionImporter.cs (1)
708
accessor.
Attribute
= attribute;
System\Xml\Serialization\XmlReflectionImporter.cs (2)
1618
accessor.
Attribute
= attribute;
1796
accessor.
Attribute
= attribute;
System\Xml\Serialization\XmlSchemaImporter.cs (2)
1469
member.
Attribute
= accessor;
1500
member.
Attribute
= accessor;
57 references to Attribute
System.Private.Xml (57)
System\Xml\Serialization\Mappings.cs (8)
849
if (
Attribute
!= null)
851
if (mapping.
Attribute
== null)
853
return (
Attribute
.Name == mapping.
Attribute
.Name &&
Attribute
.Namespace == mapping.
Attribute
.Namespace &&
Attribute
.Form == mapping.
Attribute
.Form);
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (9)
181
if (mapping.
Attribute
!= null && mapping.
Attribute
.Any)
190
if (mapping.
Attribute
!= null || mapping.Xmlns != null)
206
if (mapping.
Attribute
== null && mapping.Text == null)
220
if (mapping.
Attribute
!= null || mapping.Text != null || foundAnyElement)
1604
if (mapping.
Attribute
!= null)
1608
if (mapping.
Attribute
.Any)
1848
AttributeAccessor? attribute = member.Mapping.
Attribute
;
1913
AttributeAccessor attribute = member.Mapping.
Attribute
!;
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (4)
594
if (m.
Attribute
!= null)
599
WriteMember(memberValue, m.
Attribute
, m.TypeDesc!, o);
1215
if (member.
Attribute
!= null && !member.Ignore)
1234
WriteMember(source, member.
Attribute
, member.TypeDesc!, null);
System\Xml\Serialization\XmlReflectionImporter.cs (3)
1264
if (mapping.
Attribute
!= null)
2211
if (member.
Attribute
!= null)
2213
AddUniqueAccessor(attributes, member.
Attribute
);
System\Xml\Serialization\XmlSchemaExporter.cs (5)
78
if (member.
Attribute
!= null)
79
throw new InvalidOperationException(SR.Format(SR.XmlBareAttributeMember, member.
Attribute
.Name));
1115
AttributeAccessor? accessor = members[i].
Attribute
;
1118
ExportAttributeAccessor(type, members[i].
Attribute
, members[i].CheckSpecified != SpecifiedAccessor.None || members[i].CheckShouldPersist, ns);
1119
if (members[i].
Attribute
!.Any)
System\Xml\Serialization\XmlSerializationReader.cs (10)
2534
if (mapping.
Attribute
!= null && mapping.
Attribute
.Any)
2536
if (mapping.
Attribute
!= null || mapping.Xmlns != null)
2548
if (mapping.
Attribute
== null && mapping.Text == null)
2555
if (mapping.
Attribute
!= null || mapping.Text != null || foundAnyElement)
3326
if (mapping.
Attribute
!= null && mapping.
Attribute
.Any)
3346
if (mapping.
Attribute
== null && mapping.Elements!.Length == 1 && mapping.Elements[0].Mapping is ArrayMapping)
3692
AttributeAccessor? attribute = member.Mapping.
Attribute
;
3795
AttributeAccessor attribute = member.Mapping.
Attribute
!;
System\Xml\Serialization\XmlSerializationReaderILGen.cs (10)
461
if (mapping.
Attribute
!= null && mapping.
Attribute
.Any)
463
if (mapping.
Attribute
!= null || mapping.Xmlns != null)
475
if (mapping.
Attribute
== null && mapping.Text == null)
482
if (mapping.
Attribute
!= null || mapping.Text != null || foundAnyElement)
1550
if (mapping.
Attribute
!= null && mapping.
Attribute
.Any)
1570
if (mapping.
Attribute
== null && mapping.Elements!.Length == 1 && mapping.Elements[0].Mapping is ArrayMapping)
1831
AttributeAccessor? attribute = member.Mapping.
Attribute
;
2033
AttributeAccessor attribute = member.Mapping.
Attribute
!;
System\Xml\Serialization\XmlSerializationWriter.cs (4)
2650
if (member.
Attribute
!= null && !member.Ignore)
2686
WriteMember(source, member.
Attribute
, member.TypeDesc!, "p");
3187
if (m.
Attribute
!= null)
3208
WriteMember(RaCodeGen.GetStringForMember("o", m.Name, mapping.TypeDesc), m.
Attribute
, m.TypeDesc!, "o");
System\Xml\Serialization\XmlSerializationWriterILGen.cs (4)
409
if (member.
Attribute
!= null && !member.Ignore)
448
WriteMember(source, member.
Attribute
, member.TypeDesc!, "p");
1071
if (m.
Attribute
!= null)
1086
WriteMember(ReflectionAwareILGen.GetSourceForMember("o", m, ilg), m.
Attribute
, m.TypeDesc!, "o");