27 references to XmlElements
System.Private.Xml (21)
System\Xml\Serialization\XmlReflectionImporter.cs (21)
1377
a.
XmlElements
.Add(xmlElement);
1642
if (a.XmlText == null && a.
XmlElements
.Count == 0 && a.XmlAnyElements.Count == 0)
1643
a.
XmlElements
.Add(CreateElementAttribute(accessor.TypeDesc));
1645
for (int i = 0; i < a.
XmlElements
.Count; i++)
1647
XmlElementAttribute xmlElement = a.
XmlElements
[i]!;
1654
if (a.
XmlElements
.Count == 1)
1781
if (a.
XmlElements
.Count > 0) throw new InvalidOperationException(SR.XmlIllegalAttribute);
1814
else if (a.
XmlElements
.Count == 0)
1816
a.
XmlElements
.Add(CreateElementAttribute(accessor.TypeDesc));
1819
for (int i = 0; i < a.
XmlElements
.Count; i++)
1821
XmlElementAttribute xmlElement = a.
XmlElements
[i]!;
1885
if (a.
XmlElements
.Count == 0 && a.XmlAnyElements.Count == 0)
1886
a.
XmlElements
.Add(CreateElementAttribute(accessor.TypeDesc));
1887
for (int i = 0; i < a.
XmlElements
.Count; i++)
1889
XmlElementAttribute xmlElement = a.
XmlElements
[i]!;
1896
if (a.
XmlElements
.Count == 1)
2059
if (a.
XmlElements
!= null && a.
XmlElements
.Count > 0)
2061
if (a.
XmlElements
.Count > 1)
2065
XmlElementAttribute xmlElement = a.
XmlElements
[0]!;
2085
XmlElementAttributes elements = a.
XmlElements
;
System.ServiceModel.Primitives (6)
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (6)
1198
if (member.XmlAttributes.
XmlElements
== null || member.XmlAttributes.
XmlElements
.Count == 0)
1205
member.XmlAttributes.
XmlElements
.Add(elementAttribute);
1210
foreach (XmlElementAttribute elementAttribute in member.XmlAttributes.
XmlElements
)
1238
(xmlAttributes.
XmlElements
== null || xmlAttributes.
XmlElements
.Count == 0) &&