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