5 writes to Attribute
System.Private.Xml (5)
System\Xml\Serialization\SoapReflectionImporter.cs (1)
708
accessor.
Attribute
= attribute;
System\Xml\Serialization\XmlReflectionImporter.cs (2)
1622
accessor.
Attribute
= attribute;
1800
accessor.
Attribute
= attribute;
System\Xml\Serialization\XmlSchemaImporter.cs (2)
1469
member.
Attribute
= accessor;
1500
member.
Attribute
= accessor;
59 references to Attribute
System.Private.Xml (59)
System\Xml\Serialization\Mappings.cs (8)
848
if (
Attribute
!= null)
850
if (mapping.
Attribute
== null)
852
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)
1900
AttributeAccessor? attribute = member.Mapping.
Attribute
;
1965
AttributeAccessor attribute = member.Mapping.
Attribute
!;
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (4)
669
if (m.
Attribute
!= null)
674
WriteMember(memberValue, m.
Attribute
, m.TypeDesc!, o);
1290
if (member.
Attribute
!= null && !member.Ignore)
1309
WriteMember(source, member.
Attribute
, member.TypeDesc!, null);
System\Xml\Serialization\XmlReflectionImporter.cs (5)
1268
if (mapping.
Attribute
!= null)
2215
if (member.
Attribute
!= null)
2217
AddUniqueAccessor(attributes, member.
Attribute
);
2245
if (member.
Attribute
!= null)
2247
RemoveUniqueAccessor(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)
2533
if (mapping.
Attribute
!= null && mapping.
Attribute
.Any)
2535
if (mapping.
Attribute
!= null || mapping.Xmlns != null)
2547
if (mapping.
Attribute
== null && mapping.Text == null)
2554
if (mapping.
Attribute
!= null || mapping.Text != null || foundAnyElement)
3325
if (mapping.
Attribute
!= null && mapping.
Attribute
.Any)
3345
if (mapping.
Attribute
== null && mapping.Elements!.Length == 1 && mapping.Elements[0].Mapping is ArrayMapping)
3691
AttributeAccessor? attribute = member.Mapping.
Attribute
;
3794
AttributeAccessor attribute = member.Mapping.
Attribute
!;
System\Xml\Serialization\XmlSerializationReaderILGen.cs (10)
460
if (mapping.
Attribute
!= null && mapping.
Attribute
.Any)
462
if (mapping.
Attribute
!= null || mapping.Xmlns != null)
474
if (mapping.
Attribute
== null && mapping.Text == null)
481
if (mapping.
Attribute
!= null || mapping.Text != null || foundAnyElement)
1549
if (mapping.
Attribute
!= null && mapping.
Attribute
.Any)
1569
if (mapping.
Attribute
== null && mapping.Elements!.Length == 1 && mapping.Elements[0].Mapping is ArrayMapping)
1830
AttributeAccessor? attribute = member.Mapping.
Attribute
;
2032
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");