22 instantiations of MemberMapping
System.Private.Xml (22)
System\Xml\Serialization\Mappings.cs (1)
982return new MemberMapping(this);
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (2)
454var memberMapping = new MemberMapping(); 1122var memberMapping = new MemberMapping()
System\Xml\Serialization\SoapReflectionImporter.cs (2)
651MemberMapping member = new MemberMapping(); 669MemberMapping member = new MemberMapping();
System\Xml\Serialization\XmlReflectionImporter.cs (2)
1379MemberMapping member = new MemberMapping(); 1410MemberMapping member = new MemberMapping();
System\Xml\Serialization\XmlSchemaImporter.cs (9)
206MemberMapping member = new MemberMapping(); 775MemberMapping member = new MemberMapping(); 852MemberMapping choiceIdentifier = new MemberMapping(); 1138MemberMapping member = new MemberMapping(); 1171MemberMapping member = new MemberMapping(); 1419MemberMapping member = new MemberMapping(); 1467MemberMapping member = new MemberMapping(); 1498MemberMapping member = new MemberMapping(); 1561MemberMapping member = new MemberMapping();
System\Xml\Serialization\XmlSerializationReader.cs (3)
2796MemberMapping member = new MemberMapping(); 3125MemberMapping memberMapping = new MemberMapping(); 4560MemberMapping memberMapping = new MemberMapping();
System\Xml\Serialization\XmlSerializationReaderILGen.cs (3)
643MemberMapping member = new MemberMapping(); 1245MemberMapping memberMapping = new MemberMapping(); 2859MemberMapping memberMapping = new MemberMapping();
169 references to MemberMapping
System.Private.Xml (169)
System\Xml\Serialization\Mappings.cs (17)
469private MemberMapping[]? _members; 473private MemberMapping? _xmlnsMember; 560internal MemberMapping[]? Members 566internal MemberMapping? XmlnsMember 584internal MemberMapping? FindDeclaringMapping(MemberMapping member, out StructMapping? declaringMapping, string? parent) 589MemberMapping? baseMember = BaseMapping.FindDeclaringMapping(member, out declaringMapping, parent); 610internal bool Declares(MemberMapping member, string? parent) 863internal sealed class MemberMappingComparer : IComparer<MemberMapping> 865public int Compare(MemberMapping? m1, MemberMapping? m2) 907private MemberMapping(MemberMapping mapping) 980internal MemberMapping Clone() 988private MemberMapping[]? _members; 992private MemberMapping? _xmlnsMember; 994internal MemberMapping[]? Members 1000internal MemberMapping? XmlnsMember
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (18)
93MemberMapping[] mappings = ((MembersMapping)element.Mapping!).Members!; 133private bool GenerateLiteralMembersElementInternal(MemberMapping[] mappings, bool hasWrapperElement, object?[] p) 146MemberMapping mapping = mappings[index]; 289private static void InitializeValueTypes(object?[] p, MemberMapping[] mappings) 312MemberMapping[] mappings = membersMapping.Members!; 353MemberMapping mapping = mappings[index]; 454var memberMapping = new MemberMapping(); 677MemberMapping anyTextMapping = anyText.Mapping; 822MemberMapping anyElement = anyElementMember.Mapping; 1122var memberMapping = new MemberMapping() 1343MemberMapping[] mappings = TypeScope.GetSettableMembers(structMapping); 1347MemberMapping mapping = mappings[i]; 1576MemberMapping[] mappings = TypeScope.GetSettableMembers(structMapping); 1577MemberMapping? anyText = null; 1578MemberMapping? anyElement = null; 1596MemberMapping mapping = mappings[i]; 2024public MemberMapping Mapping; 2035public Member(MemberMapping mapping)
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (7)
550MemberMapping[] members = TypeScope.GetAllMembers(mapping); 554MemberMapping member = members[xmlnsMember]; 577MemberMapping m = members[i]; 606MemberMapping m = members[i]; 893private static int FindXmlnsIndex(MemberMapping[] members) 1214MemberMapping member = mapping.Members[i]; 1242MemberMapping member = mapping.Members[i];
System\Xml\Serialization\SchemaImporter.cs (1)
115mapping.Members = Array.Empty<MemberMapping>();
System\Xml\Serialization\SoapReflectionImporter.cs (11)
230mapping.Members = Array.Empty<MemberMapping>(); 386var members = new List<MemberMapping>(); 395MemberMapping? member = ImportFieldMapping(fieldModel, memberAttrs, mapping.Namespace!, limiter); 610MemberMapping[] mappings = new MemberMapping[xmlReflectionMembers.Length]; 616MemberMapping? mapping = ImportMemberMapping(member, ns, xmlReflectionMembers, hasWrapperElement ? XmlSchemaForm.Unqualified : XmlSchemaForm.Qualified, limiter); 647private MemberMapping? ImportMemberMapping(XmlReflectionMember xmlReflectionMember, string? ns, XmlReflectionMember[] xmlReflectionMembers, XmlSchemaForm form, RecursionLimiter limiter) 651MemberMapping member = new MemberMapping(); 666private MemberMapping? ImportFieldMapping(FieldModel model, SoapAttributes a, string ns, RecursionLimiter limiter) 669MemberMapping member = new MemberMapping(); 683private void ImportAccessorMapping(MemberMapping accessor, FieldModel model, SoapAttributes a, string? ns, XmlSchemaForm form, RecursionLimiter limiter)
System\Xml\Serialization\Types.cs (13)
1025internal static MemberMapping[] GetAllMembers(StructMapping mapping) 1029var list = new List<MemberMapping>(); 1034internal static void GetAllMembers(StructMapping mapping, List<MemberMapping> list) 1047internal static MemberMapping[] GetAllMembers(StructMapping mapping, System.Collections.Generic.Dictionary<string, MemberInfo> memberInfos) 1049MemberMapping[] mappings = GetAllMembers(mapping); 1054internal static MemberMapping[] GetSettableMembers(StructMapping structMapping) 1056var list = new List<MemberMapping>(); 1061private static void GetSettableMembers(StructMapping mapping, List<MemberMapping> list) 1070foreach (MemberMapping memberMapping in mapping.Members) 1098internal static MemberMapping[] GetSettableMembers(StructMapping mapping, System.Collections.Generic.Dictionary<string, MemberInfo> memberInfos) 1100MemberMapping[] mappings = GetSettableMembers(mapping); 1106private static void PopulateMemberInfos(StructMapping structMapping, MemberMapping[] mappings, System.Collections.Generic.Dictionary<string, MemberInfo> memberInfos) 1148MemberMapping newMapping = mappings[i].Clone();
System\Xml\Serialization\XmlMemberMapping.cs (3)
12private readonly MemberMapping _mapping; 14internal XmlMemberMapping(MemberMapping mapping) 19internal MemberMapping Mapping
System\Xml\Serialization\XmlReflectionImporter.cs (14)
234foreach (MemberMapping mapping in membersMapping.Members!) 641mapping.Members = Array.Empty<MemberMapping>(); 846var members = new List<MemberMapping>(); 861MemberMapping? member = ImportFieldMapping(model, fieldModel, memberAttrs, mapping.Namespace, limiter); 908MemberMapping member = members[i]!; 1251MemberMapping[] mappings = new MemberMapping[xmlReflectionMembers.Length]; 1261MemberMapping mapping = ImportMemberMapping(xmlReflectionMembers[i], ns, xmlReflectionMembers, rpc, openModel, limiter); 1326private MemberMapping ImportMemberMapping(XmlReflectionMember xmlReflectionMember, string? ns, XmlReflectionMember[] xmlReflectionMembers, bool rpc, bool openModel, RecursionLimiter limiter) 1379MemberMapping member = new MemberMapping(); 1408private MemberMapping ImportFieldMapping(StructModel parent, FieldModel model, XmlAttributes a, string? ns, RecursionLimiter limiter) 1410MemberMapping member = new MemberMapping(); 1529private void ImportAccessorMapping(MemberMapping accessor, FieldModel model, XmlAttributes a, string? ns, Type? choiceIdentifierType, bool rpc, bool openModel, RecursionLimiter limiter) 2209private static void AddUniqueAccessor(MemberMapping member, INameScope elements, INameScope attributes, bool isSequence)
System\Xml\Serialization\XmlSchemaExporter.cs (3)
76foreach (MemberMapping member in mapping.Members!) 1037private void ExportTypeMembers(XmlSchemaComplexType type, MemberMapping[] members, string name, string? ns, bool hasSimpleContent, bool openModel) 1044MemberMapping member = members[i];
System\Xml\Serialization\XmlSchemaImporter.cs (23)
198MemberMapping[] members = new MemberMapping[names.Length]; 206MemberMapping member = new MemberMapping(); 485MemberMapping[] members = ImportTypeMembers(type, typeNs, identifier, memberScope, new CodeIdentifiers(), new NameTable(), ref needExplicitOrder, false, false); 589MemberMapping? baseMember = ((StructMapping)baseMapping).FindDeclaringMapping(structMapping.Members[i], out declaringMapping, structMapping.TypeName); 621structMapping.Members = (MemberMapping[])members.ToArray(typeof(MemberMapping)); 638private MemberMapping[] ImportTypeMembers(XmlSchemaType type, string? typeNs, string identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, ref bool needExplicitOrder, bool order, bool allowUnboundedElements) 687MemberMapping[] typeMembers = (MemberMapping[])members.ToArray(typeof(MemberMapping)); 770private MemberMapping ImportChoiceGroup(XmlSchemaGroupBase group, string identifier, CodeIdentifiers? members, CodeIdentifiers? membersScope, INameScope? elementsScope, string? ns, bool groupRepeats, ref bool needExplicitOrder, bool allowDuplicates) 775MemberMapping member = new MemberMapping(); 852MemberMapping choiceIdentifier = new MemberMapping(); 1138MemberMapping member = new MemberMapping(); 1167private MemberMapping ImportAnyMember(XmlSchemaAny any, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, string? ns, ref bool mixed, ref bool needExplicitOrder, bool allowDuplicates) 1171MemberMapping member = new MemberMapping(); 1292MemberMapping choiceMember = ImportChoiceGroup(choice, identifier, null, null, null, ns, true, ref needExplicitOrder, false); 1419MemberMapping member = new MemberMapping(); 1467MemberMapping member = new MemberMapping(); 1498MemberMapping member = new MemberMapping(); 1554xmlnsMapping.Members = Array.Empty<MemberMapping>(); 1561MemberMapping member = new MemberMapping();
System\Xml\Serialization\XmlSerializationReader.cs (23)
2081private readonly MemberMapping _mapping; 2090internal Member(XmlSerializationReaderCodeGen outerClass, string source, string arrayName, int i, MemberMapping mapping) 2094internal Member(XmlSerializationReaderCodeGen outerClass, string source, string arrayName, int i, MemberMapping mapping, string? choiceSource) 2098internal Member(XmlSerializationReaderCodeGen outerClass, string source, string arraySource, string arrayName, int i, MemberMapping mapping) 2102internal Member(XmlSerializationReaderCodeGen outerClass, string source, string? arraySource, string arrayName, int i, MemberMapping mapping, string? choiceSource) 2106internal Member(XmlSerializationReaderCodeGen outerClass, string source, string? arrayName, int i, MemberMapping mapping, bool multiRef) 2110internal Member(XmlSerializationReaderCodeGen outerClass, string source, string? arraySource, string? arrayName, int i, MemberMapping mapping, bool multiRef, string? choiceSource) 2151internal MemberMapping Mapping 2444private static string? GetChoiceIdentifierSource(MemberMapping[] mappings, MemberMapping member) 2466private string GetChoiceIdentifierSource(MemberMapping mapping, string parent, TypeDesc parentTypeDesc) 2476MemberMapping[] mappings = ((MembersMapping)element.Mapping!).Members!; 2508MemberMapping mapping = mappings[i]; 2627private void InitializeValueTypes(string arrayName, MemberMapping[] mappings) 2654MemberMapping[] mappings = membersMapping.Members!; 2688MemberMapping mapping = mappings[i]; 2796MemberMapping member = new MemberMapping(); 3125MemberMapping memberMapping = new MemberMapping(); 3302MemberMapping[] mappings = TypeScope.GetSettableMembers(structMapping); 3315MemberMapping mapping = mappings[i]; 3451MemberMapping[] mappings = TypeScope.GetSettableMembers(structMapping); 3455MemberMapping mapping = mappings[i]; 4560MemberMapping memberMapping = new MemberMapping();
System\Xml\Serialization\XmlSerializationReaderILGen.cs (19)
44private readonly MemberMapping _mapping; 52internal Member(string source, string? arrayName, int i, MemberMapping mapping) 56internal Member(string source, string? arrayName, int i, MemberMapping mapping, string? choiceSource) 60internal Member(string source, string? arraySource, string? arrayName, int i, MemberMapping mapping) 64internal Member(string source, string? arraySource, string? arrayName, int i, MemberMapping mapping, string? choiceSource) 68internal Member(string source, string? arrayName, int i, MemberMapping mapping, bool multiRef) 72internal Member(string source, string? arraySource, string? arrayName, int i, MemberMapping mapping, bool multiRef, string? choiceSource) 112internal MemberMapping Mapping 354private static string GetChoiceIdentifierSource(MemberMapping[] mappings, MemberMapping member) 376private static string GetChoiceIdentifierSource(MemberMapping mapping, string parent) 386MemberMapping[] mappings = ((MembersMapping)element.Mapping!).Members!; 435MemberMapping mapping = mappings[i]; 612private void InitializeValueTypes(string arrayName, MemberMapping[] mappings) 643MemberMapping member = new MemberMapping(); 1245MemberMapping memberMapping = new MemberMapping(); 1526MemberMapping[] mappings = TypeScope.GetSettableMembers(structMapping, memberInfos); 1539MemberMapping mapping = mappings[i]; 2859MemberMapping memberMapping = new MemberMapping();
System\Xml\Serialization\XmlSerializationWriter.cs (8)
1702MemberMapping member = structMapping.Members[i]; 2648MemberMapping member = mapping.Members[i]; 2702MemberMapping member = mapping.Members[i]; 3149MemberMapping[] members = TypeScope.GetAllMembers(mapping); 3153MemberMapping member = members[xmlnsMember]; 3186MemberMapping m = members[i]; 3225MemberMapping m = members[i]; 4390private static int FindXmlnsIndex(MemberMapping[] members)
System\Xml\Serialization\XmlSerializationWriterILGen.cs (9)
407MemberMapping member = mapping.Members[i]; 462MemberMapping member = mapping.Members[i]; 1022MemberMapping[] members = TypeScope.GetAllMembers(mapping, memberInfos); 1026MemberMapping member = members[xmlnsMember]; 1070MemberMapping m = members[i]; 1101MemberMapping m = members[i]; 2204private static int FindXmlnsIndex(MemberMapping[] members) 2331internal static SourceInfo GetSourceForMember(string obj, MemberMapping member, CodeGenerator ilg) 2335internal static SourceInfo GetSourceForMember(string obj, MemberMapping member, MemberInfo? memberInfo, CodeGenerator ilg)