5 writes to Attribute
System.Private.Xml (5)
System\Xml\Serialization\SoapReflectionImporter.cs (1)
708
accessor.
Attribute
= attribute;
System\Xml\Serialization\XmlReflectionImporter.cs (2)
1623
accessor.
Attribute
= attribute;
1801
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)
1614
if (mapping.
Attribute
!= null)
1618
if (mapping.
Attribute
.Any)
1910
AttributeAccessor? attribute = member.Mapping.
Attribute
;
1975
AttributeAccessor attribute = member.Mapping.
Attribute
!;
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (4)
669
if (m.
Attribute
!= null)
674
WriteMember(memberValue, m.
Attribute
, m.TypeDesc!, o);
1300
if (member.
Attribute
!= null && !member.Ignore)
1319
WriteMember(source, member.
Attribute
, member.TypeDesc!, null);
System\Xml\Serialization\XmlReflectionImporter.cs (5)
1269
if (mapping.
Attribute
!= null)
2216
if (member.
Attribute
!= null)
2218
AddUniqueAccessor(attributes, member.
Attribute
);
2246
if (member.
Attribute
!= null)
2248
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));
1110
AttributeAccessor? accessor = members[i].
Attribute
;
1113
ExportAttributeAccessor(type, members[i].
Attribute
, members[i].CheckSpecified != SpecifiedAccessor.None || members[i].CheckShouldPersist, ns);
1114
if (members[i].
Attribute
!.Any)
System\Xml\Serialization\XmlSerializationReader.cs (10)
2560
if (mapping.
Attribute
!= null && mapping.
Attribute
.Any)
2562
if (mapping.
Attribute
!= null || mapping.Xmlns != null)
2574
if (mapping.
Attribute
== null && mapping.Text == null)
2581
if (mapping.
Attribute
!= null || mapping.Text != null || foundAnyElement)
3352
if (mapping.
Attribute
!= null && mapping.
Attribute
.Any)
3372
if (mapping.
Attribute
== null && mapping.Elements!.Length == 1 && mapping.Elements[0].Mapping is ArrayMapping)
3718
AttributeAccessor? attribute = member.Mapping.
Attribute
;
3821
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)
2697
if (member.
Attribute
!= null && !member.Ignore)
2733
WriteMember(source, member.
Attribute
, member.TypeDesc!, "p");
3234
if (m.
Attribute
!= null)
3255
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");