29 instantiations of ElementAccessor
System.Private.Xml (29)
System\Xml\Serialization\Mappings.cs (1)
170
ElementAccessor newAccessor = new
ElementAccessor
();
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (1)
1241
ElementAccessor element = new
ElementAccessor
();
System\Xml\Serialization\SoapReflectionImporter.cs (4)
85
ElementAccessor element = new
ElementAccessor
();
123
ElementAccessor element = new
ElementAccessor
();
716
ElementAccessor element = new
ElementAccessor
();
730
ElementAccessor element = new
ElementAccessor
();
System\Xml\Serialization\XmlReflectionImporter.cs (10)
221
ElementAccessor element = new
ElementAccessor
();
1514
ElementAccessor arrayItemElement = new
ElementAccessor
();
1646
ElementAccessor element = new
ElementAccessor
();
1699
ElementAccessor element = new
ElementAccessor
();
1741
ElementAccessor arrayElement = new
ElementAccessor
();
1822
ElementAccessor element = new
ElementAccessor
();
1887
ElementAccessor element = new
ElementAccessor
();
1941
ElementAccessor element = new
ElementAccessor
();
2238
ElementAccessor element = new
ElementAccessor
();
2264
ElementAccessor element = new
ElementAccessor
();
System\Xml\Serialization\XmlSchemaImporter.cs (10)
98
ElementAccessor accessor = new
ElementAccessor
();
166
ElementAccessor accessor = new
ElementAccessor
();
217
ElementAccessor element = new
ElementAccessor
();
238
ElementAccessor accessor = new
ElementAccessor
();
293
ElementAccessor accessor = new
ElementAccessor
();
866
ElementAccessor choiceAccessor = new
ElementAccessor
();
1219
ElementAccessor accessor = new
ElementAccessor
();
1232
ElementAccessor anyAccessor = new
ElementAccessor
();
1248
ElementAccessor arrayAccessor = new
ElementAccessor
();
1558
ElementAccessor xmlns = new
ElementAccessor
();
System\Xml\Serialization\XmlSerializationReader.cs (1)
3194
ElementAccessor element = new
ElementAccessor
();
System\Xml\Serialization\XmlSerializationReaderILGen.cs (1)
1304
ElementAccessor element = new
ElementAccessor
();
System\Xml\Serialization\XmlSerializer.cs (1)
850
ElementAccessor element = new
ElementAccessor
();
194 references to ElementAccessor
System.Private.Xml (194)
System\Xml\Serialization\Mappings.cs (18)
168
internal
ElementAccessor
Clone()
170
ElementAccessor
newAccessor = new ElementAccessor();
382
private
ElementAccessor
[]? _elements;
383
private
ElementAccessor
[]? _sortedElements;
387
internal
ElementAccessor
[]? Elements
393
internal
ElementAccessor
[]? ElementsSortedByDerivation
401
_sortedElements = new
ElementAccessor
[_elements.Length];
687
private
ElementAccessor
[]? _elements;
688
private
ElementAccessor
[]? _sortedElements;
737
internal
ElementAccessor
[]? Elements
743
internal static void SortMostToLeastDerived(
ElementAccessor
[] elements)
748
internal sealed class AccessorComparer : IComparer<
ElementAccessor
>
750
public int Compare(
ElementAccessor
? a1,
ElementAccessor
? a2)
766
internal
ElementAccessor
[]? ElementsSortedByDerivation
774
_sortedElements = new
ElementAccessor
[_elements.Length];
816
internal static bool ElementsMatch(
ElementAccessor
[]? a,
ElementAccessor
[]? b)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (10)
92
ElementAccessor
element = xmlMembersMapping.Accessor;
310
ElementAccessor
element = xmlMembersMapping.Accessor;
450
ElementAccessor
element = xmlTypeMapping.Accessor;
456
memberMapping.Elements = new
ElementAccessor
[] { element };
747
ElementAccessor
? e = null;
762
ElementAccessor
ele = m.Mapping.Elements[i];
824
ElementAccessor
[] elements = anyElement.Elements!;
827
ElementAccessor
element = elements[i];
844
private object? WriteElement(
ElementAccessor
element, bool checkForNull, bool readOnly, string? defaultNamespace, int fixupIndex = -1, Fixup? fixup = null, Member? member = null)
1241
ElementAccessor
element = new ElementAccessor();
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (13)
78
ElementAccessor
element = xmlMapping.Accessor;
109
WriteMember(o, null, new
ElementAccessor
[] { element }, null, null, mapping.TypeDesc, !element.IsSoap);
116
private void WriteMember(object? o, object? choiceSource,
ElementAccessor
[] elements, TextAccessor? text, ChoiceIdentifierAccessor? choice, TypeDesc memberTypeDesc, bool writeAccessors)
129
private void WriteArray(object o, object? choiceSource,
ElementAccessor
[] elements, TextAccessor? text, ChoiceIdentifierAccessor? choice, TypeDesc arrayTypeDesc)
152
private void WriteArrayItems(
ElementAccessor
[] elements, TextAccessor? text, ChoiceIdentifierAccessor? choice, object o)
181
private void WriteElements(object? o,
ElementAccessor
[] elements, TextAccessor? text, ChoiceIdentifierAccessor? choice, bool writeAccessors, bool isNullable)
198
var namedAnys = new List<
ElementAccessor
>();
199
ElementAccessor
? unnamedAny = null; // can only have one
203
ElementAccessor
element = elements[i];
240
foreach (
ElementAccessor
element in namedAnys)
316
private void WriteElement(object? o,
ElementAccessor
element, bool writeAccessor)
325
ElementAccessor
e = element.Clone();
1181
ElementAccessor
element = xmlMembersMapping.Accessor;
System\Xml\Serialization\SoapReflectionImporter.cs (8)
85
ElementAccessor
element = new ElementAccessor();
123
ElementAccessor
element = new ElementAccessor();
429
mapping.Elements = new
ElementAccessor
[] {
709
accessor.Elements = Array.Empty<
ElementAccessor
>();
716
ElementAccessor
element = new ElementAccessor();
724
accessor.Elements = new
ElementAccessor
[] { element };
728
private static
ElementAccessor
CreateElementAccessor(TypeMapping mapping, string? ns)
730
ElementAccessor
element = new ElementAccessor();
System\Xml\Serialization\XmlMapping.cs (4)
29
private readonly
ElementAccessor
_accessor;
34
internal XmlMapping(TypeScope? scope,
ElementAccessor
accessor) : this(scope, accessor, XmlMappingAccess.Read | XmlMappingAccess.Write)
38
internal XmlMapping(TypeScope? scope,
ElementAccessor
accessor, XmlMappingAccess access)
46
internal
ElementAccessor
Accessor
System\Xml\Serialization\XmlMembersMapping.cs (1)
18
internal XmlMembersMapping(TypeScope scope,
ElementAccessor
accessor, XmlMappingAccess access) : base(scope, accessor, access)
System\Xml\Serialization\XmlReflectionImporter.cs (27)
221
ElementAccessor
element = new ElementAccessor();
231
element = (
ElementAccessor
)ReconcileAccessor(element, _elements);
238
mapping.Elements[0] = (
ElementAccessor
)ReconcileAccessor(mapping.Elements[0], _elements);
268
private
ElementAccessor
ImportElement(TypeModel model, XmlRootAttribute? root, string? defaultNamespace, RecursionLimiter limiter)
278
ElementAccessor
element = CreateElementAccessor(ImportTypeMapping(model, ns, ImportContext.Element, string.Empty, a, limiter), ns);
293
return (
ElementAccessor
)ReconcileAccessor(element, _elements);
306
private
ElementAccessor
ReconcileLocalAccessor(
ElementAccessor
accessor, string? ns)
309
return (
ElementAccessor
)ReconcileAccessor(accessor, _elements);
822
foreach (
ElementAccessor
e in values)
1017
ElementAccessor
? element = null;
1514
ElementAccessor
arrayItemElement = new ElementAccessor();
1524
arrayMapping.Elements = (
ElementAccessor
[])arrayItemElements.ToArray(typeof(
ElementAccessor
));
1646
ElementAccessor
element = new ElementAccessor();
1699
ElementAccessor
element = new ElementAccessor();
1741
ElementAccessor
arrayElement = new ElementAccessor();
1822
ElementAccessor
element = new ElementAccessor();
1887
ElementAccessor
element = new ElementAccessor();
1941
ElementAccessor
element = new ElementAccessor();
1972
accessor.Elements = (
ElementAccessor
[])elementList.ToArray(typeof(
ElementAccessor
));
1991
ElementAccessor
element = accessor.Elements[i];
2190
if (accessor is
ElementAccessor
)
2236
private static
ElementAccessor
CreateElementAccessor(TypeMapping mapping, string ns)
2238
ElementAccessor
element = new ElementAccessor();
2264
ElementAccessor
element = new ElementAccessor();
System\Xml\Serialization\XmlSchemaExporter.cs (3)
229
private XmlSchemaElement? ExportElement(
ElementAccessor
accessor)
648
private void ExportElementAccessors(XmlSchemaGroupBase group,
ElementAccessor
[] accessors, bool repeats, bool valueTypeOptional, string? ns)
801
private void ExportElementAccessor(XmlSchemaGroupBase group,
ElementAccessor
accessor, bool repeats, bool valueTypeOptional, string? ns)
System\Xml\Serialization\XmlSchemaImporter.cs (53)
54
ElementAccessor
element = ImportElement(name, typeof(TypeMapping), baseType);
98
ElementAccessor
accessor = new ElementAccessor();
166
ElementAccessor
accessor = new ElementAccessor();
202
ElementAccessor
accessor = ImportElement(name, typeof(TypeMapping), baseType);
210
member.Elements = new
ElementAccessor
[] { accessor };
217
ElementAccessor
element = new ElementAccessor();
238
ElementAccessor
accessor = new ElementAccessor();
249
private
ElementAccessor
ImportElement(XmlQualifiedName name, Type desiredMappingType, Type? baseType)
252
ElementAccessor
? accessor = (
ElementAccessor
?)ImportedElements[element];
255
ElementAccessor
? existing = (
ElementAccessor
?)ImportedElements[element];
266
private
ElementAccessor
ImportElement(XmlSchemaElement element, string identifier, Type desiredMappingType, Type? baseType, string? ns, bool topLevelElement)
271
ElementAccessor
topAccessor = ImportElement(element.RefName, desiredMappingType, baseType);
274
ElementAccessor
refAccessor = topAccessor.Clone();
293
ElementAccessor
accessor = new ElementAccessor();
776
member.Elements = (
ElementAccessor
[])choiceElements.ToArray(typeof(
ElementAccessor
));
786
ElementAccessor
element = member.Elements[i];
792
ElementAccessor
existingElement = (
ElementAccessor
)val;
824
typeDescs[i] = ((
ElementAccessor
)enumerator.Current).Mapping!.TypeDesc!;
866
ElementAccessor
choiceAccessor = new ElementAccessor();
870
choiceIdentifier.Elements = new
ElementAccessor
[] { choiceAccessor };
886
ElementAccessor
item = arrayMapping.Elements[0];
983
private static void AddScopeElement(INameScope? scope,
ElementAccessor
element, ref bool duplicateElements, bool allowDuplicates)
988
ElementAccessor
? scopeElement = (
ElementAccessor
?)scope[element.Name, element.Namespace];
1007
private static void AddScopeElements(INameScope? scope,
ElementAccessor
[] elements, ref bool duplicateElements, bool allowDuplicates)
1139
member.Elements = Array.Empty<
ElementAccessor
>();
1169
ElementAccessor
[] accessors = ImportAny(any, !mixed, ns);
1201
private
ElementAccessor
[] ImportAny(XmlSchemaAny any, bool makeElement, string? targetNamespace)
1215
ElementAccessor
[] accessors = new
ElementAccessor
[namespaces.Count == 0 ? 1 : namespaces.Count];
1219
ElementAccessor
accessor = new ElementAccessor();
1232
ElementAccessor
anyAccessor = new ElementAccessor();
1235
return new
ElementAccessor
[] { anyAccessor };
1240
private
ElementAccessor
? ImportArray(XmlSchemaElement element, string identifier, string? ns, bool repeats)
1248
ElementAccessor
arrayAccessor = new ElementAccessor();
1308
ElementAccessor
itemAccessor = ImportElement(itemElement, identifier, typeof(TypeMapping), null, ns, false);
1311
arrayMapping.Elements = new
ElementAccessor
[] { itemAccessor };
1413
ElementAccessor
? accessor;
1442
member.Elements = new
ElementAccessor
[] { accessor };
1468
member.Elements = Array.Empty<
ElementAccessor
>();
1499
member.Elements = Array.Empty<
ElementAccessor
>();
1558
ElementAccessor
xmlns = new ElementAccessor();
1562
member.Elements = new
ElementAccessor
[] { xmlns };
1790
ElementAccessor
e1 = (
ElementAccessor
)o1!;
1791
ElementAccessor
e2 = (
ElementAccessor
)o2!;
1797
private EnumMapping ImportEnumeratedChoice(
ElementAccessor
[] choice, string? typeNs, string typeName)
1814
ElementAccessor
element = choice[i];
System\Xml\Serialization\XmlSerializationReader.cs (13)
2351
private void WriteUnknownNode(string func, string node,
ElementAccessor
? e, bool anyIfs)
2475
ElementAccessor
element = xmlMembersMapping.Accessor;
2652
ElementAccessor
element = xmlMembersMapping.Accessor;
2787
ElementAccessor
element = xmlTypeMapping.Accessor;
2799
member.Elements = new
ElementAccessor
[] { element };
3194
ElementAccessor
element = new ElementAccessor();
3987
ElementAccessor
[] elements = member.Mapping.Elements!;
3991
ElementAccessor
e = elements[j];
4155
ElementAccessor
[] elements = anyElement.Mapping.Elements!;
4158
ElementAccessor
element = elements[i];
4206
ElementAccessor
[] elements = member.Mapping.Elements!;
4210
ElementAccessor
e = elements[j];
4618
private 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)
303
private void WriteUnknownNode(string func, string node,
ElementAccessor
? e, bool anyIfs)
385
ElementAccessor
element = xmlMembersMapping.Accessor;
629
ElementAccessor
element = xmlTypeMapping.Accessor;
646
member.Elements = new
ElementAccessor
[] { element };
1304
ElementAccessor
element = new ElementAccessor();
2210
ElementAccessor
[] elements = member.Mapping.Elements!;
2214
ElementAccessor
e = elements[j];
2423
ElementAccessor
[] elements = anyElement.Mapping.Elements!;
2426
ElementAccessor
element = elements[i];
2469
ElementAccessor
[] elements = member.Mapping.Elements!;
2473
ElementAccessor
e = elements[j];
2963
private 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)
2604
ElementAccessor
element = xmlMembersMapping.Accessor;
2814
ElementAccessor
element = xmlTypeMapping.Accessor;
2845
WriteMember("o", null, new
ElementAccessor
[] { element }, null, null, mapping.TypeDesc!, !element.IsSoap);
3484
private void WriteMember(string source, string? choiceSource,
ElementAccessor
[] elements, TextAccessor? text, ChoiceIdentifierAccessor? choice, TypeDesc memberTypeDesc, bool writeAccessors)
3494
private void WriteArray(string source, string? choiceSource,
ElementAccessor
[] elements, TextAccessor? text, ChoiceIdentifierAccessor? choice, TypeDesc arrayTypeDesc)
3534
private void WriteArrayItems(
ElementAccessor
[] elements, TextAccessor? text, ChoiceIdentifierAccessor? choice, TypeDesc arrayTypeDesc, string arrayName, string? choiceName)
3636
private void WriteElements(string source,
ElementAccessor
[] elements, TextAccessor? text, ChoiceIdentifierAccessor? choice, string arrayName, bool writeAccessors, bool isNullable)
3642
private void WriteElements(string source, string? enumSource,
ElementAccessor
[] elements, TextAccessor? text, ChoiceIdentifierAccessor? choice, string arrayName, bool writeAccessors, bool isNullable)
3664
ElementAccessor
? unnamedAny = null; // can only have one
3670
ElementAccessor
element = elements[i];
3756
foreach (
ElementAccessor
element in namedAnys)
3910
private void WriteElement(string source,
ElementAccessor
element, string arrayName, bool writeAccessor)
3924
ElementAccessor
e = element.Clone();
4245
private void WriteNullCheckBegin(string source,
ElementAccessor
element)
4445
private static string FindChoiceEnumValue(
ElementAccessor
element, EnumMapping choiceMapping, bool useReflection)
System\Xml\Serialization\XmlSerializationWriterILGen.cs (15)
351
ElementAccessor
element = xmlMembersMapping.Accessor;
544
ElementAccessor
element = xmlTypeMapping.Accessor;
585
WriteMember(new SourceInfo("o", "o", null, typeof(object), ilg), null, new
ElementAccessor
[] { element }, null, null, mapping.TypeDesc, true);
1404
private void WriteMember(SourceInfo source, string? choiceSource,
ElementAccessor
[] elements, TextAccessor? text, ChoiceIdentifierAccessor? choice, TypeDesc memberTypeDesc, bool writeAccessors)
1414
private void WriteArray(SourceInfo source, string? choiceSource,
ElementAccessor
[] elements, TextAccessor? text, ChoiceIdentifierAccessor? choice, TypeDesc arrayTypeDesc)
1475
private void WriteArrayItems(
ElementAccessor
[] elements, TextAccessor? text, ChoiceIdentifierAccessor? choice, TypeDesc arrayTypeDesc, string arrayName, string? choiceName)
1564
private void WriteElements(SourceInfo source, string? enumSource,
ElementAccessor
[] elements, TextAccessor? text, ChoiceIdentifierAccessor? choice, string arrayName, bool writeAccessors, bool isNullable)
1585
var namedAnys = new List<
ElementAccessor
>();
1586
ElementAccessor
? unnamedAny = null; // can only have one
1592
ElementAccessor
element = elements[i];
1676
foreach (
ElementAccessor
element in namedAnys)
1896
private void WriteElement(SourceInfo source,
ElementAccessor
element, string arrayName, bool writeAccessor)
1920
ElementAccessor
e = element.Clone();
2181
private void WriteNullCheckBegin(string source,
ElementAccessor
element)
2239
private static string FindChoiceEnumValue(
ElementAccessor
element, EnumMapping choiceMapping, out object? eValue)
System\Xml\Serialization\XmlSerializer.cs (1)
850
ElementAccessor
element = new ElementAccessor();
System\Xml\Serialization\XmlTypeMapping.cs (1)
14
internal XmlTypeMapping(TypeScope? scope,
ElementAccessor
accessor) : base(scope, accessor)