5 writes to Attribute
System.Private.Xml (5)
System\Xml\Serialization\SoapReflectionImporter.cs (1)
708
accessor.
Attribute
= attribute;
System\Xml\Serialization\XmlReflectionImporter.cs (2)
1624
accessor.
Attribute
= attribute;
1816
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)
863
if (
Attribute
!= null)
865
if (mapping.
Attribute
== null)
867
return (
Attribute
.Name == mapping.
Attribute
.Name &&
Attribute
.Namespace == mapping.
Attribute
.Namespace &&
Attribute
.Form == mapping.
Attribute
.Form);
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (9)
188
if (mapping.
Attribute
!= null && mapping.
Attribute
.Any)
197
if (mapping.
Attribute
!= null || mapping.Xmlns != null)
213
if (mapping.
Attribute
== null && mapping.Text == null)
227
if (mapping.
Attribute
!= null || mapping.Text != null || foundAnyElement)
1709
if (mapping.
Attribute
!= null)
1713
if (mapping.
Attribute
.Any)
2034
AttributeAccessor? attribute = member.Mapping.
Attribute
;
2099
AttributeAccessor attribute = member.Mapping.
Attribute
!;
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (4)
825
if (m.
Attribute
!= null)
830
WriteMember(memberValue, m.
Attribute
, m.TypeDesc!, o);
1458
if (member.
Attribute
!= null && !member.Ignore)
1477
WriteMember(source, member.
Attribute
, member.TypeDesc!, null);
System\Xml\Serialization\XmlReflectionImporter.cs (5)
1270
if (mapping.
Attribute
!= null)
2231
if (member.
Attribute
!= null)
2233
AddUniqueAccessor(attributes, member.
Attribute
);
2261
if (member.
Attribute
!= null)
2263
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)
2598
if (mapping.
Attribute
!= null && mapping.
Attribute
.Any)
2600
if (mapping.
Attribute
!= null || mapping.Xmlns != null)
2612
if (mapping.
Attribute
== null && mapping.Text == null)
2619
if (mapping.
Attribute
!= null || mapping.Text != null || foundAnyElement)
3390
if (mapping.
Attribute
!= null && mapping.
Attribute
.Any)
3410
if (mapping.
Attribute
== null && mapping.Elements!.Length == 1 && mapping.Elements[0].Mapping is ArrayMapping)
3756
AttributeAccessor? attribute = member.Mapping.
Attribute
;
3859
AttributeAccessor attribute = member.Mapping.
Attribute
!;
System\Xml\Serialization\XmlSerializationReaderILGen.cs (10)
537
if (mapping.
Attribute
!= null && mapping.
Attribute
.Any)
539
if (mapping.
Attribute
!= null || mapping.Xmlns != null)
551
if (mapping.
Attribute
== null && mapping.Text == null)
558
if (mapping.
Attribute
!= null || mapping.Text != null || foundAnyElement)
1626
if (mapping.
Attribute
!= null && mapping.
Attribute
.Any)
1646
if (mapping.
Attribute
== null && mapping.Elements!.Length == 1 && mapping.Elements[0].Mapping is ArrayMapping)
1907
AttributeAccessor? attribute = member.Mapping.
Attribute
;
2109
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");