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