19 writes to Elements
System.Xml (19)
System\Xml\Serialization\SoapReflectionImporter.cs (2)
655
accessor.
Elements
= new ElementAccessor[0];
669
accessor.
Elements
= new ElementAccessor[] { element };
System\Xml\Serialization\SoapSchemaImporter.cs (1)
505
member.
Elements
= new ElementAccessor[] { accessor };
System\Xml\Serialization\XmlReflectionImporter.cs (1)
1715
accessor.
Elements
= (ElementAccessor[])elementList.ToArray(typeof(ElementAccessor));
System\Xml\Serialization\XmlSchemaImporter.cs (9)
241
member.
Elements
= new ElementAccessor[] { accessor };
763
member.
Elements
= (ElementAccessor[])choiceElements.ToArray(typeof(ElementAccessor));
848
choiceIdentifier.
Elements
= new ElementAccessor[] {choiceAccessor};
1071
member.
Elements
= new ElementAccessor[0];
1098
member.
Elements
= accessors;
1352
member.
Elements
= new ElementAccessor[] { accessor };
1372
member.
Elements
= new ElementAccessor[0];
1399
member.
Elements
= new ElementAccessor[0];
1453
member.
Elements
= new ElementAccessor[] {xmlns};
System\Xml\Serialization\XmlSerializationReader.cs (3)
2628
member.
Elements
= new ElementAccessor[] { element };
2926
memberMapping.
Elements
= mapping.Elements;
4193
memberMapping.
Elements
= arrayMapping.Elements;
System\Xml\Serialization\XmlSerializationReaderILGen.cs (3)
660
member.
Elements
= new ElementAccessor[] { element };
1279
memberMapping.
Elements
= mapping.Elements;
2877
memberMapping.
Elements
= arrayMapping.Elements;
101 references to Elements
System.Xml (101)
System\Xml\Serialization\Mappings.cs (5)
742
if (
Elements
!= null &&
Elements
.Length > 0) {
743
if (!ElementsMatch(
Elements
, mapping.
Elements
)) {
868
if (td.IsMappedType || (!td.IsValueType && (
Elements
[0].IsSoap || td.ArrayElementTypeDesc == null)))
System\Xml\Serialization\SoapCodeExporter.cs (3)
160
EnsureTypesExported(mapping.Members[i].
Elements
, null);
208
if (member.
Elements
.Length == 0) return;
209
ElementAccessor element = member.
Elements
[0];
System\Xml\Serialization\SoapReflectionImporter.cs (1)
613
member.
Elements
[0].IsNullable = false;
System\Xml\Serialization\SoapSchemaExporter.cs (4)
67
if (memberMapping.
Elements
.Length > 0)
68
ExportTypeMapping(memberMapping.
Elements
[0].Mapping, null);
324
if (member.
Elements
.Length > 0) {
326
ExportElementAccessors(seq, member.
Elements
, false, valueTypeOptional, ns);
System\Xml\Serialization\XmlCodeExporter.cs (8)
88
if (mapping.
Elements
!= null) {
89
for (int j = 0; j < mapping.
Elements
.Length; j++) {
90
ElementAccessor element = mapping.
Elements
[j];
546
EnsureTypesExported(mapping.Members[i].
Elements
, mapping.Namespace);
647
if (member.
Elements
.Length == 1) {
648
ElementAccessor element = member.
Elements
[0];
680
for (int i = 0; i < member.
Elements
.Length; i++) {
681
ElementAccessor element = member.
Elements
[i];
System\Xml\Serialization\XmlReflectionImporter.cs (18)
208
if (mapping.
Elements
!= null && mapping.
Elements
.Length > 0) {
209
mapping.
Elements
[0] = (ElementAccessor)ReconcileAccessor(mapping.
Elements
[0], this.elements);
776
if (member.
Elements
!= null && member.
Elements
.Length != 0) {
1207
if (xmlReflectionMember.OverrideIsNullable && member.
Elements
.Length > 0)
1208
member.
Elements
[0].IsNullable = false;
1720
if (accessor.TypeDesc.IsArrayLike && accessor.
Elements
.Length > 0 && !(accessor.
Elements
[0].Mapping is ArrayMapping))
1721
throw new InvalidOperationException(Res.GetString(Res.XmlRpcLitArrayElement, accessor.
Elements
[0].Name));
1729
accessor.ChoiceIdentifier.MemberIds = new string[accessor.
Elements
.Length];
1730
for (int i = 0; i < accessor.
Elements
.Length; i++) {
1732
ElementAccessor element = accessor.
Elements
[i];
1916
else if (!isSequence && member.
Elements
!= null && member.
Elements
.Length > 0) {
1917
for (int i = 0; i < member.
Elements
.Length; i++) {
1918
AddUniqueAccessor(elements, member.
Elements
[i]);
System\Xml\Serialization\XmlSchemaExporter.cs (14)
58
if (mapping.Members.Length == 1 && mapping.Members[0].
Elements
[0].Mapping is SpecialMapping) {
59
SpecialMapping special = (SpecialMapping)mapping.Members[0].
Elements
[0].Mapping;
96
else if (member.
Elements
== null || member.
Elements
.Length == 0)
99
if (member.TypeDesc.IsArrayLike && !(member.
Elements
[0].Mapping is ArrayMapping))
100
throw new InvalidOperationException(Res.GetString(Res.XmlIllegalArrayElement, member.
Elements
[0].Name));
103
ExportElement(member.
Elements
[0]);
106
ExportMapping(member.
Elements
[0].Mapping, member.
Elements
[0].Namespace, member.
Elements
[0].Any);
936
if (member.
Elements
.Length > 0) {
938
!(member.
Elements
.Length == 1 && member.
Elements
[0].Mapping is ArrayMapping);
941
ExportElementAccessors(seq, member.
Elements
, repeats, valueTypeOptional, ns);
System\Xml\Serialization\XmlSchemaImporter.cs (9)
764
Array.Sort(member.
Elements
, new ElementComparer());
766
AddScopeElements(elementsScope, member.
Elements
, ref needExplicitOrder, allowDuplicates);
769
Hashtable uniqueTypeDescs = new Hashtable(member.
Elements
.Length);
771
for (int i = 0; i < member.
Elements
.Length; i++) {
772
ElementAccessor element = member.
Elements
[i];
826
member.ChoiceIdentifier.Mapping = ImportEnumeratedChoice(member.
Elements
, ns, member.Name + "ChoiceType");
827
member.ChoiceIdentifier.MemberIds = new string[member.
Elements
.Length];
829
for (int i = 0; i < member.
Elements
.Length; i++) {
1213
arrayMapping.Elements = choiceMember.
Elements
;
System\Xml\Serialization\XmlSerializationReader.cs (19)
2022
ElementAccessor[] elements = mapping.
Elements
;
2393
for (int j = 0; j < mapping.
Elements
.Length; j++) {
2394
if (mapping.
Elements
[j].Any && mapping.
Elements
[j].Name.Length == 0) {
2405
else if (mapping.TypeDesc.IsArrayLike && !(mapping.
Elements
.Length == 1 && mapping.
Elements
[0].Mapping is ArrayMapping)) {
3112
for (int j = 0; j < mapping.
Elements
.Length; j++) {
3113
if (mapping.
Elements
[j].Any && (mapping.
Elements
[j].Name == null || mapping.
Elements
[j].Name.Length == 0)) {
3124
if (mapping.Attribute == null && mapping.
Elements
.Length == 1 && mapping.
Elements
[0].Mapping is ArrayMapping) {
3135
if (mapping.TypeDesc.IsArrayLike && !(mapping.
Elements
.Length == 1 && mapping.
Elements
[0].Mapping is ArrayMapping)) {
3604
if (member.Mapping.
Elements
.Length == 0)
3607
TypeMapping mapping = member.Mapping.
Elements
[0].Mapping;
3710
ElementAccessor[] elements = member.Mapping.
Elements
;
3859
ElementAccessor[] elements = anyElement.Mapping.
Elements
;
3902
ElementAccessor[] elements = member.Mapping.
Elements
;
System\Xml\Serialization\XmlSerializationReaderILGen.cs (16)
484
for (int j = 0; j < mapping.
Elements
.Length; j++) {
485
if (mapping.
Elements
[j].Any && mapping.
Elements
[j].Name.Length == 0) {
496
else if (mapping.TypeDesc.IsArrayLike && !(mapping.
Elements
.Length == 1 && mapping.
Elements
[0].Mapping is ArrayMapping)) {
1586
for (int j = 0; j < mapping.
Elements
.Length; j++) {
1587
if (mapping.
Elements
[j].Any && (mapping.
Elements
[j].Name == null || mapping.
Elements
[j].Name.Length == 0)) {
1598
if (mapping.Attribute == null && mapping.
Elements
.Length == 1 && mapping.
Elements
[0].Mapping is ArrayMapping) {
1609
if (mapping.TypeDesc.IsArrayLike && !(mapping.
Elements
.Length == 1 && mapping.
Elements
[0].Mapping is ArrayMapping)) {
2260
ElementAccessor[] elements = member.Mapping.
Elements
;
2483
ElementAccessor[] elements = anyElement.Mapping.
Elements
;
2521
ElementAccessor[] elements = member.Mapping.
Elements
;
System\Xml\Serialization\XmlSerializationWriter.cs (3)
1745
if (isRpc && member.IsReturnValue && member.
Elements
.Length > 0) {
1747
WriteQuotedCSharpString(member.
Elements
[0].Name);
2158
bool checkShouldPersist = m.CheckShouldPersist && (m.
Elements
.Length > 0 || m.Text != null);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (1)
1067
bool checkShouldPersist = m.CheckShouldPersist && (m.
Elements
.Length > 0 || m.Text != null);