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