5 writes to Attribute
System.Xml (5)
System\Xml\Serialization\SoapReflectionImporter.cs (1)
654
accessor.
Attribute
= attribute;
System\Xml\Serialization\XmlReflectionImporter.cs (2)
1399
accessor.
Attribute
= attribute;
1560
accessor.
Attribute
= attribute;
System\Xml\Serialization\XmlSchemaImporter.cs (2)
1373
member.
Attribute
= accessor;
1400
member.
Attribute
= accessor;
51 references to Attribute
System.Xml (51)
System\Xml\Serialization\Mappings.cs (8)
750
if (
Attribute
!= null) {
751
if (mapping.
Attribute
== null)
753
return (
Attribute
.Name == mapping.
Attribute
.Name &&
Attribute
.Namespace == mapping.
Attribute
.Namespace &&
Attribute
.Form == mapping.
Attribute
.Form);
System\Xml\Serialization\XmlCodeExporter.cs (7)
85
if (mapping.
Attribute
!= null) {
86
ExportType(mapping.
Attribute
.Mapping, Accessor.UnescapeName(mapping.
Attribute
.Name), mapping.
Attribute
.Namespace, null, false);
547
EnsureTypesExported(mapping.Members[i].
Attribute
, mapping.Namespace);
618
else if (member.
Attribute
!= null) {
619
AttributeAccessor attribute = member.
Attribute
;
System\Xml\Serialization\XmlReflectionImporter.cs (3)
1101
if (mapping.
Attribute
!= null) {
1913
if (member.
Attribute
!= null) {
1914
AddUniqueAccessor(attributes, member.
Attribute
);
System\Xml\Serialization\XmlSchemaExporter.cs (5)
92
if (member.
Attribute
!= null)
93
throw new InvalidOperationException(Res.GetString(Res.XmlBareAttributeMember, member.
Attribute
.Name));
984
AttributeAccessor accessor = members[i].
Attribute
;
986
ExportAttributeAccessor(type, members[i].
Attribute
, members[i].CheckSpecified != SpecifiedAccessor.None || members[i].CheckShouldPersist, ns);
987
if (members[i].
Attribute
.Any)
System\Xml\Serialization\XmlSerializationReader.cs (10)
2385
if (mapping.
Attribute
!= null && mapping.
Attribute
.Any)
2387
if (mapping.
Attribute
!= null || mapping.Xmlns != null)
2396
if (mapping.
Attribute
== null && mapping.Text == null)
2403
if (mapping.
Attribute
!= null || mapping.Text != null || foundAnyElement)
3108
if (mapping.
Attribute
!= null && mapping.
Attribute
.Any)
3124
if (mapping.
Attribute
== null && mapping.Elements.Length == 1 && mapping.Elements[0].Mapping is ArrayMapping) {
3444
AttributeAccessor attribute = member.Mapping.
Attribute
;
3539
AttributeAccessor attribute = member.Mapping.
Attribute
;
System\Xml\Serialization\XmlSerializationReaderILGen.cs (10)
476
if (mapping.
Attribute
!= null && mapping.
Attribute
.Any)
478
if (mapping.
Attribute
!= null || mapping.Xmlns != null)
487
if (mapping.
Attribute
== null && mapping.Text == null)
494
if (mapping.
Attribute
!= null || mapping.Text != null || foundAnyElement)
1582
if (mapping.
Attribute
!= null && mapping.
Attribute
.Any)
1598
if (mapping.
Attribute
== null && mapping.Elements.Length == 1 && mapping.Elements[0].Mapping is ArrayMapping) {
1873
AttributeAccessor attribute = member.Mapping.
Attribute
;
2093
AttributeAccessor attribute = member.Mapping.
Attribute
;
System\Xml\Serialization\XmlSerializationWriter.cs (4)
1647
if (member.
Attribute
!= null && !member.Ignore) {
1677
WriteMember(source, member.
Attribute
, member.TypeDesc, "p");
2122
if (m.
Attribute
!= null) {
2140
WriteMember(RaCodeGen.GetStringForMember("o", m.Name, mapping.TypeDesc), m.
Attribute
, m.TypeDesc, "o");
System\Xml\Serialization\XmlSerializationWriterILGen.cs (4)
382
if (member.
Attribute
!= null && !member.Ignore) {
416
WriteMember(source, member.
Attribute
, member.TypeDesc, "p");
1039
if (m.
Attribute
!= null) {
1051
WriteMember(RaCodeGen.GetSourceForMember("o", m, mapping.TypeDesc, ilg), m.
Attribute
, m.TypeDesc, "o");