5 writes to Attribute
System.Private.Xml (5)
System\Xml\Serialization\SoapReflectionImporter.cs (1)
708accessor.Attribute = attribute;
System\Xml\Serialization\XmlReflectionImporter.cs (2)
1623accessor.Attribute = attribute; 1801accessor.Attribute = attribute;
System\Xml\Serialization\XmlSchemaImporter.cs (2)
1469member.Attribute = accessor; 1500member.Attribute = accessor;
59 references to Attribute
System.Private.Xml (59)
System\Xml\Serialization\Mappings.cs (8)
848if (Attribute != null) 850if (mapping.Attribute == null) 852return (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) 1614if (mapping.Attribute != null) 1618if (mapping.Attribute.Any) 1910AttributeAccessor? attribute = member.Mapping.Attribute; 1975AttributeAccessor attribute = member.Mapping.Attribute!;
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (4)
669if (m.Attribute != null) 674WriteMember(memberValue, m.Attribute, m.TypeDesc!, o); 1300if (member.Attribute != null && !member.Ignore) 1319WriteMember(source, member.Attribute, member.TypeDesc!, null);
System\Xml\Serialization\XmlReflectionImporter.cs (5)
1269if (mapping.Attribute != null) 2216if (member.Attribute != null) 2218AddUniqueAccessor(attributes, member.Attribute); 2246if (member.Attribute != null) 2248RemoveUniqueAccessor(attributes, member.Attribute);
System\Xml\Serialization\XmlSchemaExporter.cs (5)
78if (member.Attribute != null) 79throw new InvalidOperationException(SR.Format(SR.XmlBareAttributeMember, member.Attribute.Name)); 1110AttributeAccessor? accessor = members[i].Attribute; 1113ExportAttributeAccessor(type, members[i].Attribute, members[i].CheckSpecified != SpecifiedAccessor.None || members[i].CheckShouldPersist, ns); 1114if (members[i].Attribute!.Any)
System\Xml\Serialization\XmlSerializationReader.cs (10)
2560if (mapping.Attribute != null && mapping.Attribute.Any) 2562if (mapping.Attribute != null || mapping.Xmlns != null) 2574if (mapping.Attribute == null && mapping.Text == null) 2581if (mapping.Attribute != null || mapping.Text != null || foundAnyElement) 3352if (mapping.Attribute != null && mapping.Attribute.Any) 3372if (mapping.Attribute == null && mapping.Elements!.Length == 1 && mapping.Elements[0].Mapping is ArrayMapping) 3718AttributeAccessor? attribute = member.Mapping.Attribute; 3821AttributeAccessor attribute = member.Mapping.Attribute!;
System\Xml\Serialization\XmlSerializationReaderILGen.cs (10)
460if (mapping.Attribute != null && mapping.Attribute.Any) 462if (mapping.Attribute != null || mapping.Xmlns != null) 474if (mapping.Attribute == null && mapping.Text == null) 481if (mapping.Attribute != null || mapping.Text != null || foundAnyElement) 1549if (mapping.Attribute != null && mapping.Attribute.Any) 1569if (mapping.Attribute == null && mapping.Elements!.Length == 1 && mapping.Elements[0].Mapping is ArrayMapping) 1830AttributeAccessor? attribute = member.Mapping.Attribute; 2032AttributeAccessor attribute = member.Mapping.Attribute!;
System\Xml\Serialization\XmlSerializationWriter.cs (4)
2697if (member.Attribute != null && !member.Ignore) 2733WriteMember(source, member.Attribute, member.TypeDesc!, "p"); 3234if (m.Attribute != null) 3255WriteMember(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");