5 writes to Attribute
System.Xml (5)
System\Xml\Serialization\SoapReflectionImporter.cs (1)
654accessor.Attribute = attribute;
System\Xml\Serialization\XmlReflectionImporter.cs (2)
1399accessor.Attribute = attribute; 1560accessor.Attribute = attribute;
System\Xml\Serialization\XmlSchemaImporter.cs (2)
1373member.Attribute = accessor; 1400member.Attribute = accessor;
51 references to Attribute
System.Xml (51)
System\Xml\Serialization\Mappings.cs (8)
750if (Attribute != null) { 751if (mapping.Attribute == null) 753return (Attribute.Name == mapping.Attribute.Name && Attribute.Namespace == mapping.Attribute.Namespace && Attribute.Form == mapping.Attribute.Form);
System\Xml\Serialization\XmlCodeExporter.cs (7)
85if (mapping.Attribute != null) { 86ExportType(mapping.Attribute.Mapping, Accessor.UnescapeName(mapping.Attribute.Name), mapping.Attribute.Namespace, null, false); 547EnsureTypesExported(mapping.Members[i].Attribute, mapping.Namespace); 618else if (member.Attribute != null) { 619AttributeAccessor attribute = member.Attribute;
System\Xml\Serialization\XmlReflectionImporter.cs (3)
1101if (mapping.Attribute != null) { 1913if (member.Attribute != null) { 1914AddUniqueAccessor(attributes, member.Attribute);
System\Xml\Serialization\XmlSchemaExporter.cs (5)
92if (member.Attribute != null) 93throw new InvalidOperationException(Res.GetString(Res.XmlBareAttributeMember, member.Attribute.Name)); 984AttributeAccessor accessor = members[i].Attribute; 986ExportAttributeAccessor(type, members[i].Attribute, members[i].CheckSpecified != SpecifiedAccessor.None || members[i].CheckShouldPersist, ns); 987if (members[i].Attribute.Any)
System\Xml\Serialization\XmlSerializationReader.cs (10)
2385if (mapping.Attribute != null && mapping.Attribute.Any) 2387if (mapping.Attribute != null || mapping.Xmlns != null) 2396if (mapping.Attribute == null && mapping.Text == null) 2403if (mapping.Attribute != null || mapping.Text != null || foundAnyElement) 3108if (mapping.Attribute != null && mapping.Attribute.Any) 3124if (mapping.Attribute == null && mapping.Elements.Length == 1 && mapping.Elements[0].Mapping is ArrayMapping) { 3444AttributeAccessor attribute = member.Mapping.Attribute; 3539AttributeAccessor attribute = member.Mapping.Attribute;
System\Xml\Serialization\XmlSerializationReaderILGen.cs (10)
476if (mapping.Attribute != null && mapping.Attribute.Any) 478if (mapping.Attribute != null || mapping.Xmlns != null) 487if (mapping.Attribute == null && mapping.Text == null) 494if (mapping.Attribute != null || mapping.Text != null || foundAnyElement) 1582if (mapping.Attribute != null && mapping.Attribute.Any) 1598if (mapping.Attribute == null && mapping.Elements.Length == 1 && mapping.Elements[0].Mapping is ArrayMapping) { 1873AttributeAccessor attribute = member.Mapping.Attribute; 2093AttributeAccessor attribute = member.Mapping.Attribute;
System\Xml\Serialization\XmlSerializationWriter.cs (4)
1647if (member.Attribute != null && !member.Ignore) { 1677WriteMember(source, member.Attribute, member.TypeDesc, "p"); 2122if (m.Attribute != null) { 2140WriteMember(RaCodeGen.GetStringForMember("o", m.Name, mapping.TypeDesc), m.Attribute, m.TypeDesc, "o");
System\Xml\Serialization\XmlSerializationWriterILGen.cs (4)
382if (member.Attribute != null && !member.Ignore) { 416WriteMember(source, member.Attribute, member.TypeDesc, "p"); 1039if (m.Attribute != null) { 1051WriteMember(RaCodeGen.GetSourceForMember("o", m, mapping.TypeDesc, ilg), m.Attribute, m.TypeDesc, "o");