1 write to XmlAttribute
System.Xml (1)
System\Xml\Serialization\XmlReflectionImporter.cs (1)
1376a.XmlAttribute = new XmlAttributeAttribute();
21 references to XmlAttribute
System.ServiceModel (2)
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (2)
992if (member.XmlAttributes.XmlAttribute != null) 1064xmlAttributes.XmlAttribute == null &&
System.Xml (19)
System\Xml\Serialization\XmlReflectionImporter.cs (19)
1363if (a.XmlAttribute != null && !accessor.TypeDesc.ArrayElementTypeDesc.IsPrimitive && !accessor.TypeDesc.ArrayElementTypeDesc.IsEnum) { 1373bool isList = a.XmlAttribute != null && (accessor.TypeDesc.ArrayElementTypeDesc.IsPrimitive || accessor.TypeDesc.ArrayElementTypeDesc.IsEnum); 1380Type targetType = a.XmlAttribute.Type == null ? arrayElementType : a.XmlAttribute.Type; 1382attribute.Name = Accessor.EscapeQName(a.XmlAttribute.AttributeName.Length == 0 ? accessorName : a.XmlAttribute.AttributeName); 1383attribute.Namespace = a.XmlAttribute.Namespace == null ? ns : a.XmlAttribute.Namespace; 1384attribute.Form = a.XmlAttribute.Form; 1390attribute.Mapping = ImportTypeMapping(modelScope.GetTypeModel(targetType), ns, ImportContext.Attribute, a.XmlAttribute.DataType, null, isList, false, limiter); 1540if (a.XmlAttribute != null) { 1542if (a.XmlAttribute.Type != null) throw new InvalidOperationException(Res.GetString(Res.XmlIllegalType, "XmlAttribute")); 1544attribute.Name = Accessor.EscapeQName(a.XmlAttribute.AttributeName.Length == 0 ? accessorName : a.XmlAttribute.AttributeName); 1545attribute.Namespace = a.XmlAttribute.Namespace == null ? ns : a.XmlAttribute.Namespace; 1546attribute.Form = a.XmlAttribute.Form; 1552attribute.Mapping = ImportTypeMapping(modelScope.GetTypeModel(accessorType), ns, ImportContext.Attribute, a.XmlAttribute.DataType, null, limiter); 1622if (a.XmlAttribute != null || a.XmlText != null) {