13 writes to Elements
dotnet-svcutil-lib (13)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (2)
735
accessor.
Elements
= new ElementAccessor[0];
750
accessor.
Elements
= new ElementAccessor[] { element };
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (1)
567
member.
Elements
= new ElementAccessor[] { accessor };
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (1)
1961
accessor.
Elements
= (ElementAccessor[])elementList.ToArray(typeof(ElementAccessor));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (9)
263
member.
Elements
= new ElementAccessor[] { accessor };
876
member.
Elements
= (ElementAccessor[])choiceElements.ToArray(typeof(ElementAccessor));
972
choiceIdentifier.
Elements
= new ElementAccessor[] { choiceAccessor };
1240
member.
Elements
= new ElementAccessor[0];
1272
member.
Elements
= accessors;
1549
member.
Elements
= new ElementAccessor[] { accessor };
1573
member.
Elements
= new ElementAccessor[0];
1603
member.
Elements
= new ElementAccessor[0];
1666
member.
Elements
= new ElementAccessor[] { xmlns };
66 references to Elements
dotnet-svcutil-lib (66)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (5)
886
if (
Elements
!= null &&
Elements
.Length > 0)
888
if (!ElementsMatch(
Elements
, mapping.
Elements
))
1032
if (td.IsMappedType || (!td.IsValueType && (
Elements
[0].IsSoap || td.ArrayElementTypeDesc == null)))
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapCodeExporter.cs (3)
170
EnsureTypesExported(mapping.Members[i].
Elements
, null);
226
if (member.
Elements
.Length == 0) return;
227
ElementAccessor element = member.
Elements
[0];
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (1)
689
member.
Elements
[0].IsNullable = false;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaExporter.cs (4)
71
if (memberMapping.
Elements
.Length > 0)
72
ExportTypeMapping(memberMapping.
Elements
[0].Mapping, null);
374
if (member.
Elements
.Length > 0)
377
ExportElementAccessors(seq, member.
Elements
, false, valueTypeOptional, ns);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (8)
91
if (mapping.
Elements
!= null)
93
for (int j = 0; j < mapping.
Elements
.Length; j++)
95
ElementAccessor element = mapping.
Elements
[j];
630
EnsureTypesExported(mapping.Members[i].
Elements
, mapping.Namespace);
743
if (member.
Elements
.Length == 1)
745
ElementAccessor element = member.
Elements
[0];
781
for (int i = 0; i < member.
Elements
.Length; i++)
783
ElementAccessor element = member.
Elements
[i];
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (18)
228
if (mapping.
Elements
!= null && mapping.
Elements
.Length > 0)
230
mapping.
Elements
[0] = (ElementAccessor)ReconcileAccessor(mapping.
Elements
[0], _elements);
884
if (member.
Elements
!= null && member.
Elements
.Length != 0)
1386
if (xmlReflectionMember.OverrideIsNullable && member.
Elements
.Length > 0)
1387
member.
Elements
[0].IsNullable = false;
1966
if (accessor.TypeDesc.IsArrayLike && accessor.
Elements
.Length > 0 && !(accessor.
Elements
[0].Mapping is ArrayMapping))
1967
throw new InvalidOperationException(string.Format(ResXml.XmlRpcLitArrayElement, accessor.
Elements
[0].Name));
1976
accessor.ChoiceIdentifier.MemberIds = new string[accessor.
Elements
.Length];
1977
for (int i = 0; i < accessor.
Elements
.Length; i++)
1980
ElementAccessor element = accessor.
Elements
[i];
2204
else if (!isSequence && member.
Elements
!= null && member.
Elements
.Length > 0)
2206
for (int i = 0; i < member.
Elements
.Length; i++)
2208
AddUniqueAccessor(elements, member.
Elements
[i]);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (14)
61
if (mapping.Members.Length == 1 && mapping.Members[0].
Elements
[0].Mapping is SpecialMapping)
63
SpecialMapping special = (SpecialMapping)mapping.Members[0].
Elements
[0].Mapping;
106
else if (member.
Elements
== null || member.
Elements
.Length == 0)
109
if (member.TypeDesc.IsArrayLike && !(member.
Elements
[0].Mapping is ArrayMapping))
110
throw new InvalidOperationException(string.Format(ResXml.XmlIllegalArrayElement, member.
Elements
[0].Name));
114
ExportElement(member.
Elements
[0]);
118
ExportMapping(member.
Elements
[0].Mapping, member.
Elements
[0].Namespace, member.
Elements
[0].Any);
1098
if (member.
Elements
.Length > 0)
1101
!(member.
Elements
.Length == 1 && member.
Elements
[0].Mapping is ArrayMapping);
1104
ExportElementAccessors(seq, member.
Elements
, repeats, valueTypeOptional, ns);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (9)
877
Array.Sort(member.
Elements
, new ElementComparer());
879
AddScopeElements(elementsScope, member.
Elements
, ref needExplicitOrder, allowDuplicates);
882
Hashtable uniqueTypeDescs = new Hashtable(member.
Elements
.Length);
884
for (int i = 0; i < member.
Elements
.Length; i++)
886
ElementAccessor element = member.
Elements
[i];
947
member.ChoiceIdentifier.Mapping = ImportEnumeratedChoice(member.
Elements
, ns, member.Name + "ChoiceType");
948
member.ChoiceIdentifier.MemberIds = new string[member.
Elements
.Length];
950
for (int i = 0; i < member.
Elements
.Length; i++)
1398
arrayMapping.Elements = choiceMember.
Elements
;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (3)
2031
if (isRpc && member.IsReturnValue && member.
Elements
.Length > 0)
2034
WriteQuotedCSharpString(member.
Elements
[0].Name);
2494
bool checkShouldPersist = m.CheckShouldPersist && (m.
Elements
.Length > 0 || m.Text != null);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (1)
1160
bool checkShouldPersist = m.CheckShouldPersist && (m.
Elements
.Length > 0 || m.Text != null);