1 write to XmlAttribute
System.Private.Xml (1)
System\Xml\Serialization\XmlReflectionImporter.cs (1)
1598
a.
XmlAttribute
= new XmlAttributeAttribute();
17 references to XmlAttribute
System.Private.Xml (17)
System\Xml\Serialization\XmlReflectionImporter.cs (17)
1582
if (a.
XmlAttribute
!= null && !accessor.TypeDesc.ArrayElementTypeDesc!.IsPrimitive && !accessor.TypeDesc.ArrayElementTypeDesc.IsEnum)
1594
bool isList = a.
XmlAttribute
!= null && (accessor.TypeDesc.ArrayElementTypeDesc!.IsPrimitive || accessor.TypeDesc.ArrayElementTypeDesc.IsEnum);
1602
Type targetType = a.
XmlAttribute
!.Type == null ? arrayElementType : a.
XmlAttribute
.Type!;
1604
attribute.Name = Accessor.EscapeQName(a.
XmlAttribute
.AttributeName.Length == 0 ? accessorName : a.
XmlAttribute
.AttributeName);
1605
attribute.Namespace = a.
XmlAttribute
.Namespace ?? ns;
1606
attribute.Form = a.
XmlAttribute
.Form;
1613
attribute.Mapping = ImportTypeMapping(_modelScope.GetTypeModel(targetType), ns, ImportContext.Attribute, a.
XmlAttribute
.DataType, null, isList, false, limiter);
1778
if (a.
XmlAttribute
!= null)
1781
if (a.
XmlAttribute
.Type != null) throw new InvalidOperationException(SR.Format(SR.XmlIllegalType, "XmlAttribute"));
1783
attribute.Name = Accessor.EscapeQName(a.
XmlAttribute
.AttributeName.Length == 0 ? accessorName : a.
XmlAttribute
.AttributeName);
1784
attribute.Namespace = a.
XmlAttribute
.Namespace ?? ns;
1785
attribute.Form = a.
XmlAttribute
.Form;
1792
attribute.Mapping = ImportTypeMapping(_modelScope.GetTypeModel(accessorType), ns, ImportContext.Attribute, a.
XmlAttribute
.DataType, null, limiter);
1873
if (a.
XmlAttribute
!= null || a.XmlText != null)