35 instantiations of ElementAccessor
System.Xml (35)
System\Xml\Serialization\Mappings.cs (1)
143
ElementAccessor newAccessor = new
ElementAccessor
();
System\Xml\Serialization\SoapReflectionImporter.cs (4)
108
ElementAccessor element = new
ElementAccessor
();
149
ElementAccessor element = new
ElementAccessor
();
661
ElementAccessor element = new
ElementAccessor
();
674
ElementAccessor element = new
ElementAccessor
();
System\Xml\Serialization\SoapSchemaImporter.cs (7)
68
ElementAccessor accessor = new
ElementAccessor
();
93
ElementAccessor accessor = new
ElementAccessor
();
149
ElementAccessor accessor = new
ElementAccessor
();
170
ElementAccessor accessor = new
ElementAccessor
();
387
ElementAccessor arrayAccessor = new
ElementAccessor
();
403
ElementAccessor itemAccessor = new
ElementAccessor
();
456
ElementAccessor itemAccessor = new
ElementAccessor
();
System\Xml\Serialization\XmlReflectionImporter.cs (10)
196
ElementAccessor element = new
ElementAccessor
();
1305
ElementAccessor arrayItemElement = new
ElementAccessor
();
1425
ElementAccessor element = new
ElementAccessor
();
1471
ElementAccessor element = new
ElementAccessor
();
1510
ElementAccessor arrayElement = new
ElementAccessor
();
1581
ElementAccessor element = new
ElementAccessor
();
1636
ElementAccessor element = new
ElementAccessor
();
1686
ElementAccessor element = new
ElementAccessor
();
1934
ElementAccessor element = new
ElementAccessor
();
1954
ElementAccessor element = new
ElementAccessor
();
System\Xml\Serialization\XmlSchemaImporter.cs (10)
135
ElementAccessor accessor = new
ElementAccessor
();
198
ElementAccessor accessor = new
ElementAccessor
();
248
ElementAccessor element = new
ElementAccessor
();
265
ElementAccessor accessor = new
ElementAccessor
();
310
ElementAccessor accessor = new
ElementAccessor
();
844
ElementAccessor choiceAccessor = new
ElementAccessor
();
1145
ElementAccessor accessor = new
ElementAccessor
();
1157
ElementAccessor anyAccessor = new
ElementAccessor
();
1170
ElementAccessor arrayAccessor = new
ElementAccessor
();
1449
ElementAccessor xmlns = new
ElementAccessor
();
System\Xml\Serialization\XmlSerializationReader.cs (1)
2988
ElementAccessor element = new
ElementAccessor
();
System\Xml\Serialization\XmlSerializationReaderILGen.cs (1)
1335
ElementAccessor element = new
ElementAccessor
();
System\Xml\Serialization\XmlSerializer.cs (1)
729
ElementAccessor element = new
ElementAccessor
();
198 references to ElementAccessor
System.Xml (198)
System\Xml\Serialization\Mappings.cs (16)
142
internal
ElementAccessor
Clone() {
143
ElementAccessor
newAccessor = new ElementAccessor();
319
ElementAccessor
[] elements;
320
ElementAccessor
[] sortedElements;
324
internal
ElementAccessor
[] Elements {
329
internal
ElementAccessor
[] ElementsSortedByDerivation {
335
sortedElements = new
ElementAccessor
[elements.Length];
588
ElementAccessor
[] elements;
589
ElementAccessor
[] sortedElements;
633
internal
ElementAccessor
[] Elements {
638
internal static void SortMostToLeastDerived(
ElementAccessor
[] elements) {
658
internal
ElementAccessor
[] ElementsSortedByDerivation {
664
sortedElements = new
ElementAccessor
[elements.Length];
700
static bool IsNeedNullableMember(
ElementAccessor
element) {
724
internal static bool ElementsMatch(
ElementAccessor
[] a,
ElementAccessor
[] b) {
System\Xml\Serialization\SoapCodeExporter.cs (3)
78
ExportElement((
ElementAccessor
)xmlMembersMapping[i].Accessor);
82
void ExportElement(
ElementAccessor
element) {
209
ElementAccessor
element = member.Elements[0];
System\Xml\Serialization\SoapReflectionImporter.cs (8)
108
ElementAccessor
element = new ElementAccessor();
149
ElementAccessor
element = new ElementAccessor();
413
mapping.Elements = new
ElementAccessor
[] {
655
accessor.Elements = new
ElementAccessor
[0];
661
ElementAccessor
element = new ElementAccessor();
669
accessor.Elements = new
ElementAccessor
[] { element };
673
static
ElementAccessor
CreateElementAccessor(TypeMapping mapping, string ns) {
674
ElementAccessor
element = new ElementAccessor();
System\Xml\Serialization\SoapSchemaExporter.cs (2)
239
void ExportElementAccessors(XmlSchemaGroupBase group,
ElementAccessor
[] accessors, bool repeats, bool valueTypeOptional, string ns) {
256
void ExportElementAccessor(XmlSchemaGroupBase group,
ElementAccessor
accessor, bool repeats, bool valueTypeOptional, string ns) {
System\Xml\Serialization\SoapSchemaImporter.cs (15)
68
ElementAccessor
accessor = new ElementAccessor();
93
ElementAccessor
accessor = new ElementAccessor();
149
ElementAccessor
accessor = new ElementAccessor();
160
ElementAccessor
ImportElement(XmlSchemaElement element, string ns) {
170
ElementAccessor
accessor = new ElementAccessor();
381
ElementAccessor
ImportArray(XmlSchemaElement element, string ns) {
387
ElementAccessor
arrayAccessor = new ElementAccessor();
403
ElementAccessor
itemAccessor = new ElementAccessor();
411
arrayMapping.Elements = new
ElementAccessor
[] { itemAccessor };
456
ElementAccessor
itemAccessor = new ElementAccessor();
464
arrayMapping.Elements = new
ElementAccessor
[] { itemAccessor };
480
ElementAccessor
itemAccessor = ImportElement(itemElement, ns);
481
arrayMapping.Elements = new
ElementAccessor
[] { itemAccessor };
491
ElementAccessor
accessor;
505
member.Elements = new
ElementAccessor
[] { accessor };
System\Xml\Serialization\XmlCodeExporter.cs (9)
90
ElementAccessor
element = mapping.Elements[j];
101
void ExportElement(
ElementAccessor
element) {
109
void ExportType(TypeMapping mapping, string name, string ns,
ElementAccessor
rootElement, bool checkReference) {
166
void AddRootMetadata(CodeAttributeDeclarationCollection metadata, TypeMapping typeMapping, string name, string ns,
ElementAccessor
rootElement) {
383
if (memberTypeDesc.IsArrayLike && accessor is
ElementAccessor
) {
387
AddWarningComment(comments, Res.GetString(Res.XmlDropArrayAttributeValue, attributeName, defaultValue.ToString(), ((
ElementAccessor
)accessor).Name));
598
ElementAccessor
arrayElement = array.Elements[i];
648
ElementAccessor
element = member.Elements[0];
681
ElementAccessor
element = member.Elements[i];
System\Xml\Serialization\XmlMapping.cs (4)
29
ElementAccessor
accessor;
34
internal XmlMapping(TypeScope scope,
ElementAccessor
accessor) : this(scope, accessor, XmlMappingAccess.Read | XmlMappingAccess.Write){
37
internal XmlMapping(TypeScope scope,
ElementAccessor
accessor, XmlMappingAccess access) {
44
internal
ElementAccessor
Accessor {
System\Xml\Serialization\XmlMembersMapping.cs (1)
21
internal XmlMembersMapping(TypeScope scope,
ElementAccessor
accessor, XmlMappingAccess access) : base(scope, accessor, access) {
System\Xml\Serialization\XmlReflectionImporter.cs (27)
196
ElementAccessor
element = new ElementAccessor();
205
element = (
ElementAccessor
)ReconcileAccessor(element, this.elements);
209
mapping.Elements[0] = (
ElementAccessor
)ReconcileAccessor(mapping.Elements[0], this.elements);
234
ElementAccessor
ImportElement(TypeModel model, XmlRootAttribute root, string defaultNamespace, RecursionLimiter limiter) {
246
ElementAccessor
element = CreateElementAccessor(ImportTypeMapping(model, ns, ImportContext.Element, string.Empty, a, limiter), ns);
260
return (
ElementAccessor
)ReconcileAccessor(element, this.elements);
272
ElementAccessor
ReconcileLocalAccessor(
ElementAccessor
accessor, string ns) {
274
return (
ElementAccessor
)ReconcileAccessor(accessor, this.elements);
721
foreach (
ElementAccessor
e in values) {
885
ElementAccessor
element = null;
1305
ElementAccessor
arrayItemElement = new ElementAccessor();
1315
arrayMapping.Elements = (
ElementAccessor
[])arrayItemElements.ToArray(typeof(
ElementAccessor
));
1425
ElementAccessor
element = new ElementAccessor();
1471
ElementAccessor
element = new ElementAccessor();
1510
ElementAccessor
arrayElement = new ElementAccessor();
1581
ElementAccessor
element = new ElementAccessor();
1636
ElementAccessor
element = new ElementAccessor();
1686
ElementAccessor
element = new ElementAccessor();
1715
accessor.Elements = (
ElementAccessor
[])elementList.ToArray(typeof(
ElementAccessor
));
1732
ElementAccessor
element = accessor.Elements[i];
1896
if (accessor is
ElementAccessor
) {
1933
static
ElementAccessor
CreateElementAccessor(TypeMapping mapping, string ns) {
1934
ElementAccessor
element = new ElementAccessor();
1954
ElementAccessor
element = new ElementAccessor();
System\Xml\Serialization\XmlSchemaExporter.cs (3)
227
XmlSchemaElement ExportElement(
ElementAccessor
accessor) {
590
void ExportElementAccessors(XmlSchemaGroupBase group,
ElementAccessor
[] accessors, bool repeats, bool valueTypeOptional, string ns) {
719
void ExportElementAccessor(XmlSchemaGroupBase group,
ElementAccessor
accessor, bool repeats, bool valueTypeOptional, string ns) {
System\Xml\Serialization\XmlSchemaImporter.cs (53)
91
ElementAccessor
element = ImportElement(name, typeof(TypeMapping), baseType);
135
ElementAccessor
accessor = new ElementAccessor();
198
ElementAccessor
accessor = new ElementAccessor();
233
ElementAccessor
accessor = ImportElement(name, typeof(TypeMapping), baseType);
241
member.Elements = new
ElementAccessor
[] { accessor };
248
ElementAccessor
element = new ElementAccessor();
265
ElementAccessor
accessor = new ElementAccessor();
274
ElementAccessor
ImportElement(XmlQualifiedName name, Type desiredMappingType, Type baseType) {
276
ElementAccessor
accessor = (
ElementAccessor
)ImportedElements[element];
279
ElementAccessor
existing = (
ElementAccessor
)ImportedElements[element];
287
ElementAccessor
ImportElement(XmlSchemaElement element, string identifier, Type desiredMappingType, Type baseType, string ns, bool topLevelElement) {
290
ElementAccessor
topAccessor = ImportElement(element.RefName, desiredMappingType, baseType);
292
ElementAccessor
refAccessor = topAccessor.Clone();
310
ElementAccessor
accessor = new ElementAccessor();
763
member.Elements = (
ElementAccessor
[])choiceElements.ToArray(typeof(
ElementAccessor
));
772
ElementAccessor
element = member.Elements[i];
777
ElementAccessor
existingElement = (
ElementAccessor
)val;
806
typeDescs[i] = ((
ElementAccessor
)enumerator.Current).Mapping.TypeDesc;
844
ElementAccessor
choiceAccessor = new ElementAccessor();
848
choiceIdentifier.Elements = new
ElementAccessor
[] {choiceAccessor};
864
ElementAccessor
item = arrayMapping.Elements[0];
944
void AddScopeElement(INameScope scope,
ElementAccessor
element, ref bool duplicateElements, bool allowDuplicates) {
948
ElementAccessor
scopeElement = (
ElementAccessor
)scope[element.Name, element.Namespace];
963
void AddScopeElements(INameScope scope,
ElementAccessor
[] elements, ref bool duplicateElements, bool allowDuplicates) {
1071
member.Elements = new
ElementAccessor
[0];
1095
ElementAccessor
[] accessors = ImportAny(any, !mixed, ns);
1123
ElementAccessor
[] ImportAny(XmlSchemaAny any, bool makeElement, string targetNamespace) {
1142
ElementAccessor
[] accessors = new
ElementAccessor
[namespaces.Count == 0 ? 1 : namespaces.Count];
1145
ElementAccessor
accessor = new ElementAccessor();
1157
ElementAccessor
anyAccessor = new ElementAccessor();
1160
return new
ElementAccessor
[] {anyAccessor};
1163
ElementAccessor
ImportArray(XmlSchemaElement element, string identifier, string ns, bool repeats) {
1170
ElementAccessor
arrayAccessor = new ElementAccessor();
1225
ElementAccessor
itemAccessor = ImportElement(itemElement, identifier, typeof(TypeMapping), null, ns, false);
1228
arrayMapping.Elements = new
ElementAccessor
[] { itemAccessor };
1327
ElementAccessor
accessor;
1352
member.Elements = new
ElementAccessor
[] { accessor };
1372
member.Elements = new
ElementAccessor
[0];
1399
member.Elements = new
ElementAccessor
[0];
1449
ElementAccessor
xmlns = new ElementAccessor();
1453
member.Elements = new
ElementAccessor
[] {xmlns};
1647
ElementAccessor
e1 = (
ElementAccessor
)o1;
1648
ElementAccessor
e2 = (
ElementAccessor
)o2;
1653
EnumMapping ImportEnumeratedChoice(
ElementAccessor
[] choice, string typeNs, string typeName) {
1667
ElementAccessor
element = choice[i];
System\Xml\Serialization\XmlSerializationReader.cs (14)
2022
ElementAccessor
[] elements = mapping.Elements;
2223
void WriteUnknownNode(string func, string node,
ElementAccessor
e, bool anyIfs) {
2331
ElementAccessor
element = xmlMembersMapping.Accessor;
2489
ElementAccessor
element = xmlMembersMapping.Accessor;
2616
ElementAccessor
element = xmlTypeMapping.Accessor;
2628
member.Elements = new
ElementAccessor
[] { element };
2988
ElementAccessor
element = new ElementAccessor();
3710
ElementAccessor
[] elements = member.Mapping.Elements;
3713
ElementAccessor
e = elements[j];
3859
ElementAccessor
[] elements = anyElement.Mapping.Elements;
3861
ElementAccessor
element = elements[i];
3902
ElementAccessor
[] elements = member.Mapping.Elements;
3905
ElementAccessor
e = elements[j];
4247
void WriteElement(string source, string arrayName, string choiceSource,
ElementAccessor
element, ChoiceIdentifierAccessor choice, string checkSpecified, bool checkForNull, bool readOnly, int fixupIndex, int elementIndex) {
System\Xml\Serialization\XmlSerializationReaderILGen.cs (12)
305
void WriteUnknownNode(string func, string node,
ElementAccessor
e, bool anyIfs) {
401
ElementAccessor
element = xmlMembersMapping.Accessor;
643
ElementAccessor
element = xmlTypeMapping.Accessor;
660
member.Elements = new
ElementAccessor
[] { element };
1335
ElementAccessor
element = new ElementAccessor();
2260
ElementAccessor
[] elements = member.Mapping.Elements;
2263
ElementAccessor
e = elements[j];
2483
ElementAccessor
[] elements = anyElement.Mapping.Elements;
2485
ElementAccessor
element = elements[i];
2521
ElementAccessor
[] elements = member.Mapping.Elements;
2524
ElementAccessor
e = elements[j];
2984
void WriteElement(string source, string arrayName, string choiceSource,
ElementAccessor
element, ChoiceIdentifierAccessor choice, string checkSpecified, bool checkForNull, bool readOnly, int fixupIndex, int elementIndex) {
System\Xml\Serialization\XmlSerializationWriter.cs (15)
1604
ElementAccessor
element = xmlMembersMapping.Accessor;
1789
ElementAccessor
element = xmlTypeMapping.Accessor;
1818
WriteMember("o", null, new
ElementAccessor
[] { element }, null, null, mapping.TypeDesc, !element.IsSoap);
2373
void WriteMember(string source, string choiceSource,
ElementAccessor
[] elements, TextAccessor text, ChoiceIdentifierAccessor choice, TypeDesc memberTypeDesc, bool writeAccessors) {
2382
void WriteArray(string source, string choiceSource,
ElementAccessor
[] elements, TextAccessor text, ChoiceIdentifierAccessor choice, TypeDesc arrayTypeDesc) {
2418
void WriteArrayItems(
ElementAccessor
[] elements, TextAccessor text, ChoiceIdentifierAccessor choice, TypeDesc arrayTypeDesc, string arrayName, string choiceName) {
2505
void WriteElements(string source,
ElementAccessor
[] elements, TextAccessor text, ChoiceIdentifierAccessor choice, string arrayName, bool writeAccessors, bool isNullable) {
2509
void WriteElements(string source, string enumSource,
ElementAccessor
[] elements, TextAccessor text, ChoiceIdentifierAccessor choice, string arrayName, bool writeAccessors, bool isNullable) {
2527
ElementAccessor
unnamedAny = null; // can only have one
2532
ElementAccessor
element = elements[i];
2609
foreach (
ElementAccessor
element in namedAnys) {
2746
void WriteElement(string source,
ElementAccessor
element, string arrayName, bool writeAccessor) {
2758
ElementAccessor
e = element.Clone();
3043
void WriteNullCheckBegin(string source,
ElementAccessor
element) {
3189
string FindChoiceEnumValue(
ElementAccessor
element, EnumMapping choiceMapping, bool useReflection) {
System\Xml\Serialization\XmlSerializationWriterILGen.cs (14)
322
ElementAccessor
element = xmlMembersMapping.Accessor;
501
ElementAccessor
element = xmlTypeMapping.Accessor;
544
WriteMember(new SourceInfo("o", "o", null, typeof(object), ilg), null, new
ElementAccessor
[] { element }, null, null, mapping.TypeDesc, true);
1364
void WriteMember(SourceInfo source, string choiceSource,
ElementAccessor
[] elements, TextAccessor text, ChoiceIdentifierAccessor choice, TypeDesc memberTypeDesc, bool writeAccessors) {
1374
void WriteArray(SourceInfo source, string choiceSource,
ElementAccessor
[] elements, TextAccessor text, ChoiceIdentifierAccessor choice, TypeDesc arrayTypeDesc) {
1430
void WriteArrayItems(
ElementAccessor
[] elements, TextAccessor text, ChoiceIdentifierAccessor choice, TypeDesc arrayTypeDesc, string arrayName, string choiceName)
1518
void WriteElements(SourceInfo source, string enumSource,
ElementAccessor
[] elements, TextAccessor text, ChoiceIdentifierAccessor choice, string arrayName, bool writeAccessors, bool isNullable) {
1536
ElementAccessor
unnamedAny = null; // can only have one
1541
ElementAccessor
element = elements[i];
1619
foreach (
ElementAccessor
element in namedAnys) {
1845
void WriteElement(SourceInfo source,
ElementAccessor
element, string arrayName, bool writeAccessor) {
1868
ElementAccessor
e = element.Clone();
2119
void WriteNullCheckBegin(string source,
ElementAccessor
element) {
2171
string FindChoiceEnumValue(
ElementAccessor
element, EnumMapping choiceMapping, out object eValue) {
System\Xml\Serialization\XmlSerializer.cs (1)
729
ElementAccessor
element = new ElementAccessor();
System\Xml\Serialization\XmlTypeMapping.cs (1)
19
internal XmlTypeMapping(TypeScope scope,
ElementAccessor
accessor) : base(scope, accessor) {