33 instantiations of ElementAccessor
dotnet-svcutil-lib (33)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (1)
164
ElementAccessor newAccessor = new
ElementAccessor
();
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (4)
113
ElementAccessor element = new
ElementAccessor
();
158
ElementAccessor element = new
ElementAccessor
();
742
ElementAccessor element = new
ElementAccessor
();
756
ElementAccessor element = new
ElementAccessor
();
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (7)
66
ElementAccessor accessor = new
ElementAccessor
();
92
ElementAccessor accessor = new
ElementAccessor
();
154
ElementAccessor accessor = new
ElementAccessor
();
178
ElementAccessor accessor = new
ElementAccessor
();
434
ElementAccessor arrayAccessor = new
ElementAccessor
();
452
ElementAccessor itemAccessor = new
ElementAccessor
();
513
ElementAccessor itemAccessor = new
ElementAccessor
();
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (10)
213
ElementAccessor element = new
ElementAccessor
();
1502
ElementAccessor arrayItemElement = new
ElementAccessor
();
1633
ElementAccessor element = new
ElementAccessor
();
1686
ElementAccessor element = new
ElementAccessor
();
1729
ElementAccessor arrayElement = new
ElementAccessor
();
1811
ElementAccessor element = new
ElementAccessor
();
1876
ElementAccessor element = new
ElementAccessor
();
1930
ElementAccessor element = new
ElementAccessor
();
2227
ElementAccessor element = new
ElementAccessor
();
2251
ElementAccessor element = new
ElementAccessor
();
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (10)
144
ElementAccessor accessor = new
ElementAccessor
();
215
ElementAccessor accessor = new
ElementAccessor
();
270
ElementAccessor element = new
ElementAccessor
();
289
ElementAccessor accessor = new
ElementAccessor
();
340
ElementAccessor accessor = new
ElementAccessor
();
968
ElementAccessor choiceAccessor = new
ElementAccessor
();
1325
ElementAccessor accessor = new
ElementAccessor
();
1338
ElementAccessor anyAccessor = new
ElementAccessor
();
1352
ElementAccessor arrayAccessor = new
ElementAccessor
();
1662
ElementAccessor xmlns = new
ElementAccessor
();
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializer.cs (1)
765
ElementAccessor element = new
ElementAccessor
();
172 references to ElementAccessor
dotnet-svcutil-lib (172)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (16)
162
internal
ElementAccessor
Clone()
164
ElementAccessor
newAccessor = new ElementAccessor();
375
private
ElementAccessor
[] _elements;
376
private
ElementAccessor
[] _sortedElements;
380
internal
ElementAccessor
[] Elements
386
internal
ElementAccessor
[] ElementsSortedByDerivation
394
_sortedElements = new
ElementAccessor
[_elements.Length];
704
private
ElementAccessor
[] _elements;
705
private
ElementAccessor
[] _sortedElements;
754
internal
ElementAccessor
[] Elements
760
internal static void SortMostToLeastDerived(
ElementAccessor
[] elements)
783
internal
ElementAccessor
[] ElementsSortedByDerivation
791
_sortedElements = new
ElementAccessor
[_elements.Length];
833
private static bool IsNeedNullableMember(
ElementAccessor
element)
864
internal static bool ElementsMatch(
ElementAccessor
[] a,
ElementAccessor
[] b)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapCodeExporter.cs (3)
77
ExportElement((
ElementAccessor
)xmlMembersMapping[i].Accessor);
81
private void ExportElement(
ElementAccessor
element)
227
ElementAccessor
element = member.Elements[0];
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (8)
113
ElementAccessor
element = new ElementAccessor();
158
ElementAccessor
element = new ElementAccessor();
458
mapping.Elements = new
ElementAccessor
[] {
735
accessor.Elements = new
ElementAccessor
[0];
742
ElementAccessor
element = new ElementAccessor();
750
accessor.Elements = new
ElementAccessor
[] { element };
754
private static
ElementAccessor
CreateElementAccessor(TypeMapping mapping, string ns)
756
ElementAccessor
element = new ElementAccessor();
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaExporter.cs (2)
274
private void ExportElementAccessors(XmlSchemaGroupBase group,
ElementAccessor
[] accessors, bool repeats, bool valueTypeOptional, string ns)
294
private void ExportElementAccessor(XmlSchemaGroupBase group,
ElementAccessor
accessor, bool repeats, bool valueTypeOptional, string ns)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (15)
66
ElementAccessor
accessor = new ElementAccessor();
92
ElementAccessor
accessor = new ElementAccessor();
154
ElementAccessor
accessor = new ElementAccessor();
165
private
ElementAccessor
ImportElement(XmlSchemaElement element, string ns)
178
ElementAccessor
accessor = new ElementAccessor();
427
private
ElementAccessor
ImportArray(XmlSchemaElement element, string ns)
434
ElementAccessor
arrayAccessor = new ElementAccessor();
452
ElementAccessor
itemAccessor = new ElementAccessor();
460
arrayMapping.Elements = new
ElementAccessor
[] { itemAccessor };
513
ElementAccessor
itemAccessor = new ElementAccessor();
521
arrayMapping.Elements = new
ElementAccessor
[] { itemAccessor };
538
ElementAccessor
itemAccessor = ImportElement(itemElement, ns);
539
arrayMapping.Elements = new
ElementAccessor
[] { itemAccessor };
551
ElementAccessor
accessor;
567
member.Elements = new
ElementAccessor
[] { accessor };
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (9)
95
ElementAccessor
element = mapping.Elements[j];
107
private void ExportElement(
ElementAccessor
element)
117
private void ExportType(TypeMapping mapping, string name, string ns,
ElementAccessor
rootElement, bool checkReference)
181
private void AddRootMetadata(CodeAttributeDeclarationCollection metadata, TypeMapping typeMapping, string name, string ns,
ElementAccessor
rootElement)
431
if (memberTypeDesc.IsArrayLike && accessor is
ElementAccessor
)
437
AddWarningComment(comments, string.Format(ResXml.XmlDropArrayAttributeValue, attributeName, defaultValue.ToString(), ((
ElementAccessor
)accessor).Name));
688
ElementAccessor
arrayElement = array.Elements[i];
745
ElementAccessor
element = member.Elements[0];
783
ElementAccessor
element = member.Elements[i];
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlMapping.cs (4)
32
private
ElementAccessor
_accessor;
37
internal XmlMapping(TypeScope scope,
ElementAccessor
accessor) : this(scope, accessor, XmlMappingAccess.Read | XmlMappingAccess.Write)
41
internal XmlMapping(TypeScope scope,
ElementAccessor
accessor, XmlMappingAccess access)
49
internal
ElementAccessor
Accessor
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlMembersMapping.cs (1)
20
internal XmlMembersMapping(TypeScope scope,
ElementAccessor
accessor, XmlMappingAccess access) : base(scope, accessor, access)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (27)
213
ElementAccessor
element = new ElementAccessor();
223
element = (
ElementAccessor
)ReconcileAccessor(element, _elements);
230
mapping.Elements[0] = (
ElementAccessor
)ReconcileAccessor(mapping.Elements[0], _elements);
259
private
ElementAccessor
ImportElement(TypeModel model, XmlRootAttribute root, string defaultNamespace, RecursionLimiter limiter)
272
ElementAccessor
element = CreateElementAccessor(ImportTypeMapping(model, ns, ImportContext.Element, string.Empty, a, limiter), ns);
287
return (
ElementAccessor
)ReconcileAccessor(element, _elements);
300
private
ElementAccessor
ReconcileLocalAccessor(
ElementAccessor
accessor, string ns)
303
return (
ElementAccessor
)ReconcileAccessor(accessor, _elements);
819
foreach (
ElementAccessor
e in values)
1012
ElementAccessor
element = null;
1502
ElementAccessor
arrayItemElement = new ElementAccessor();
1512
arrayMapping.Elements = (
ElementAccessor
[])arrayItemElements.ToArray(typeof(
ElementAccessor
));
1633
ElementAccessor
element = new ElementAccessor();
1686
ElementAccessor
element = new ElementAccessor();
1729
ElementAccessor
arrayElement = new ElementAccessor();
1811
ElementAccessor
element = new ElementAccessor();
1876
ElementAccessor
element = new ElementAccessor();
1930
ElementAccessor
element = new ElementAccessor();
1961
accessor.Elements = (
ElementAccessor
[])elementList.ToArray(typeof(
ElementAccessor
));
1980
ElementAccessor
element = accessor.Elements[i];
2179
if (accessor is
ElementAccessor
)
2225
private static
ElementAccessor
CreateElementAccessor(TypeMapping mapping, string ns)
2227
ElementAccessor
element = new ElementAccessor();
2251
ElementAccessor
element = new ElementAccessor();
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (3)
256
private XmlSchemaElement ExportElement(
ElementAccessor
accessor)
687
private void ExportElementAccessors(XmlSchemaGroupBase group,
ElementAccessor
[] accessors, bool repeats, bool valueTypeOptional, string ns)
842
private void ExportElementAccessor(XmlSchemaGroupBase group,
ElementAccessor
accessor, bool repeats, bool valueTypeOptional, string ns)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (53)
93
ElementAccessor
element = ImportElement(name, typeof(TypeMapping), baseType);
144
ElementAccessor
accessor = new ElementAccessor();
215
ElementAccessor
accessor = new ElementAccessor();
255
ElementAccessor
accessor = ImportElement(name, typeof(TypeMapping), baseType);
263
member.Elements = new
ElementAccessor
[] { accessor };
270
ElementAccessor
element = new ElementAccessor();
289
ElementAccessor
accessor = new ElementAccessor();
298
private
ElementAccessor
ImportElement(XmlQualifiedName name, Type desiredMappingType, Type baseType)
301
ElementAccessor
accessor = (
ElementAccessor
)ImportedElements[element];
304
ElementAccessor
existing = (
ElementAccessor
)ImportedElements[element];
313
private
ElementAccessor
ImportElement(XmlSchemaElement element, string identifier, Type desiredMappingType, Type baseType, string ns, bool topLevelElement)
318
ElementAccessor
topAccessor = ImportElement(element.RefName, desiredMappingType, baseType);
321
ElementAccessor
refAccessor = topAccessor.Clone();
340
ElementAccessor
accessor = new ElementAccessor();
876
member.Elements = (
ElementAccessor
[])choiceElements.ToArray(typeof(
ElementAccessor
));
886
ElementAccessor
element = member.Elements[i];
892
ElementAccessor
existingElement = (
ElementAccessor
)val;
924
typeDescs[i] = ((
ElementAccessor
)enumerator.Current).Mapping.TypeDesc;
968
ElementAccessor
choiceAccessor = new ElementAccessor();
972
choiceIdentifier.Elements = new
ElementAccessor
[] { choiceAccessor };
991
ElementAccessor
item = arrayMapping.Elements[0];
1087
private void AddScopeElement(INameScope scope,
ElementAccessor
element, ref bool duplicateElements, bool allowDuplicates)
1092
ElementAccessor
scopeElement = (
ElementAccessor
)scope[element.Name, element.Namespace];
1111
private void AddScopeElements(INameScope scope,
ElementAccessor
[] elements, ref bool duplicateElements, bool allowDuplicates)
1240
member.Elements = new
ElementAccessor
[0];
1269
ElementAccessor
[] accessors = ImportAny(any, !mixed, ns);
1299
private
ElementAccessor
[] ImportAny(XmlSchemaAny any, bool makeElement, string targetNamespace)
1321
ElementAccessor
[] accessors = new
ElementAccessor
[namespaces.Count == 0 ? 1 : namespaces.Count];
1325
ElementAccessor
accessor = new ElementAccessor();
1338
ElementAccessor
anyAccessor = new ElementAccessor();
1341
return new
ElementAccessor
[] { anyAccessor };
1344
private
ElementAccessor
ImportArray(XmlSchemaElement element, string identifier, string ns, bool repeats)
1352
ElementAccessor
arrayAccessor = new ElementAccessor();
1411
ElementAccessor
itemAccessor = ImportElement(itemElement, identifier, typeof(TypeMapping), null, ns, false);
1414
arrayMapping.Elements = new
ElementAccessor
[] { itemAccessor };
1520
ElementAccessor
accessor;
1549
member.Elements = new
ElementAccessor
[] { accessor };
1573
member.Elements = new
ElementAccessor
[0];
1603
member.Elements = new
ElementAccessor
[0];
1662
ElementAccessor
xmlns = new ElementAccessor();
1666
member.Elements = new
ElementAccessor
[] { xmlns };
1892
ElementAccessor
e1 = (
ElementAccessor
)o1;
1893
ElementAccessor
e2 = (
ElementAccessor
)o2;
1898
private EnumMapping ImportEnumeratedChoice(
ElementAccessor
[] choice, string typeNs, string typeName)
1915
ElementAccessor
element = choice[i];
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (15)
1872
ElementAccessor
element = xmlMembersMapping.Accessor;
2081
ElementAccessor
element = xmlTypeMapping.Accessor;
2112
WriteMember("o", null, new
ElementAccessor
[] { element }, null, null, mapping.TypeDesc, !element.IsSoap);
2747
private void WriteMember(string source, string choiceSource,
ElementAccessor
[] elements, TextAccessor text, ChoiceIdentifierAccessor choice, TypeDesc memberTypeDesc, bool writeAccessors)
2757
private void WriteArray(string source, string choiceSource,
ElementAccessor
[] elements, TextAccessor text, ChoiceIdentifierAccessor choice, TypeDesc arrayTypeDesc)
2797
private void WriteArrayItems(
ElementAccessor
[] elements, TextAccessor text, ChoiceIdentifierAccessor choice, TypeDesc arrayTypeDesc, string arrayName, string choiceName)
2898
private void WriteElements(string source,
ElementAccessor
[] elements, TextAccessor text, ChoiceIdentifierAccessor choice, string arrayName, bool writeAccessors, bool isNullable)
2903
private void WriteElements(string source, string enumSource,
ElementAccessor
[] elements, TextAccessor text, ChoiceIdentifierAccessor choice, string arrayName, bool writeAccessors, bool isNullable)
2925
ElementAccessor
unnamedAny = null; // can only have one
2931
ElementAccessor
element = elements[i];
3013
foreach (
ElementAccessor
element in namedAnys)
3169
private void WriteElement(string source,
ElementAccessor
element, string arrayName, bool writeAccessor)
3183
ElementAccessor
e = element.Clone();
3503
private void WriteNullCheckBegin(string source,
ElementAccessor
element)
3659
private string FindChoiceEnumValue(
ElementAccessor
element, EnumMapping choiceMapping, bool useReflection)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (14)
357
ElementAccessor
element = xmlMembersMapping.Accessor;
556
ElementAccessor
element = xmlTypeMapping.Accessor;
601
WriteMember(new SourceInfo("o", "o", null, typeof(object), ilg), null, new
ElementAccessor
[] { element }, null, null, mapping.TypeDesc, true);
1485
private void WriteMember(SourceInfo source, string choiceSource,
ElementAccessor
[] elements, TextAccessor text, ChoiceIdentifierAccessor choice, TypeDesc memberTypeDesc, bool writeAccessors)
1496
private void WriteArray(SourceInfo source, string choiceSource,
ElementAccessor
[] elements, TextAccessor text, ChoiceIdentifierAccessor choice, TypeDesc arrayTypeDesc)
1556
private void WriteArrayItems(
ElementAccessor
[] elements, TextAccessor text, ChoiceIdentifierAccessor choice, TypeDesc arrayTypeDesc, string arrayName, string choiceName)
1648
private void WriteElements(SourceInfo source, string enumSource,
ElementAccessor
[] elements, TextAccessor text, ChoiceIdentifierAccessor choice, string arrayName, bool writeAccessors, bool isNullable)
1670
ElementAccessor
unnamedAny = null; // can only have one
1676
ElementAccessor
element = elements[i];
1762
foreach (
ElementAccessor
element in namedAnys)
2008
private void WriteElement(SourceInfo source,
ElementAccessor
element, string arrayName, bool writeAccessor)
2035
ElementAccessor
e = element.Clone();
2313
private void WriteNullCheckBegin(string source,
ElementAccessor
element)
2374
private string FindChoiceEnumValue(
ElementAccessor
element, EnumMapping choiceMapping, out object eValue)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializer.cs (1)
765
ElementAccessor
element = new ElementAccessor();
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlTypeMapping.cs (1)
16
internal XmlTypeMapping(TypeScope scope,
ElementAccessor
accessor) : base(scope, accessor)