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