8 instantiations of StructMapping
System.Private.Xml (8)
System\Xml\Serialization\SchemaImporter.cs (1)
113StructMapping mapping = new StructMapping();
System\Xml\Serialization\SoapReflectionImporter.cs (2)
227StructMapping mapping = new StructMapping(); 311mapping = new StructMapping();
System\Xml\Serialization\XmlReflectionImporter.cs (2)
637StructMapping mapping = new StructMapping(); 745mapping = new StructMapping();
System\Xml\Serialization\XmlSchemaImporter.cs (3)
547StructMapping structMapping = new StructMapping(); 610StructMapping structMapping = new StructMapping(); 1550StructMapping xmlnsMapping = new StructMapping();
142 references to StructMapping
System.Private.Xml (142)
System\Xml\Serialization\Mappings.cs (13)
385private StructMapping? _topLevelMapping; 415internal StructMapping? TopLevelMapping 470private StructMapping? _baseMapping; 471private StructMapping? _derivedMappings; 472private StructMapping? _nextDerivedMapping; 482internal StructMapping? BaseMapping 498for (StructMapping? derived = _derivedMappings; derived != null; derived = derived.NextDerivedMapping) 507internal StructMapping? DerivedMappings 535internal StructMapping? NextDerivedMapping 549StructMapping? mapping = this; 584internal MemberMapping? FindDeclaringMapping(MemberMapping member, out StructMapping? declaringMapping, string? parent) 663StructMapping start = this; 670for (StructMapping? derived = start.DerivedMappings; derived != null; derived = derived.NextDerivedMapping)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (11)
39(mapping is StructMapping || mapping is EnumMapping || mapping is ArrayMapping || mapping is NullableMapping) && 907else if (element.Mapping is StructMapping || (element.Mapping.IsSoap && element.Mapping is PrimitiveMapping)) 942mapping: (StructMapping)mapping, 1023if (mapping is StructMapping structMapping) 1228private object? WriteStructMethod(StructMapping mapping, bool isNullable, bool checkType, string? defaultNamespace) 1328private object? WriteEncodedStructMethod(StructMapping structMapping) 1400if (mapping is StructMapping || mapping is ArrayMapping || mapping is PrimitiveMapping || mapping is NullableMapping) 1502private object? WriteLiteralStructMethod(StructMapping structMapping, bool isNullable, bool checkType, string? defaultNamespace) 1628structMapping.FindDeclaringMapping(mapping, out StructMapping? declaringMapping, structMapping.TypeName!); 1805private bool WriteDerivedTypes(out object? o, StructMapping mapping, XmlQualifiedName xsiType, string? defaultNamespace, bool checkType, bool isNullable) 1807for (StructMapping? derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping)
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (8)
45(mapping is StructMapping || mapping is EnumMapping) && 418else if (element.Mapping is StructMapping) 420var mapping = element.Mapping as StructMapping; 457if (mapping is StructMapping structMapping) 507private void WriteStructMethod(StructMapping mapping, string n, string? ns, object? o, bool isNullable, bool needType) 906private bool WriteDerivedTypes(StructMapping mapping, string n, string? ns, object o, bool isNullable) 909for (StructMapping? derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping)
System\Xml\Serialization\SchemaImporter.cs (6)
20private StructMapping? _root; 79internal void MakeDerived(StructMapping structMapping, Type? baseType, bool baseTypeCanBeIndirect) 110private StructMapping CreateRootMapping() 113StructMapping mapping = new StructMapping(); 124internal StructMapping GetRootMapping() => _root ??= CreateRootMapping(); 128internal StructMapping ImportRootMapping()
System\Xml\Serialization\SoapReflectionImporter.cs (10)
23private StructMapping? _root; 224private StructMapping CreateRootMapping() 227StructMapping mapping = new StructMapping(); 238private StructMapping GetRootMapping() 296private StructMapping ImportStructLikeMapping(StructModel model, RecursionLimiter limiter) 308StructMapping? mapping = (StructMapping?)GetTypeMapping(typeName, typeNs, model.TypeDesc); 354private bool InitializeStructMembers(StructMapping mapping, StructModel model, RecursionLimiter limiter) 360StructMapping baseMapping = ImportStructLikeMapping((StructModel)_modelScope.GetTypeModel(model.Type.BaseType!, false), limiter); 481else if (itemTypeMapping is StructMapping)
System\Xml\Serialization\Types.cs (7)
1025internal static MemberMapping[] GetAllMembers(StructMapping mapping) 1034internal static void GetAllMembers(StructMapping mapping, List<MemberMapping> list) 1047internal static MemberMapping[] GetAllMembers(StructMapping mapping, System.Collections.Generic.Dictionary<string, MemberInfo> memberInfos) 1054internal static MemberMapping[] GetSettableMembers(StructMapping structMapping) 1061private static void GetSettableMembers(StructMapping mapping, List<MemberMapping> list) 1098internal static MemberMapping[] GetSettableMembers(StructMapping mapping, System.Collections.Generic.Dictionary<string, MemberInfo> memberInfos) 1106private static void PopulateMemberInfos(StructMapping structMapping, MemberMapping[] mappings, System.Collections.Generic.Dictionary<string, MemberInfo> memberInfos)
System\Xml\Serialization\XmlReflectionImporter.cs (15)
36private StructMapping? _root; 634private StructMapping CreateRootMapping() 637StructMapping mapping = new StructMapping(); 702private StructMapping GetRootMapping() 728private StructMapping ImportStructLikeMapping(StructModel model, string? ns, bool openModel, XmlAttributes? a, RecursionLimiter limiter) 742StructMapping? mapping = (StructMapping?)GetTypeMapping(typeName, typeNs, model.TypeDesc, _types, model.Type); 794private bool InitializeStructMembers(StructMapping mapping, StructModel model, bool openModel, string? typeName, RecursionLimiter limiter) 807StructMapping baseMapping = ImportStructLikeMapping((StructModel)baseModel, mapping.Namespace, openModel, null, limiter); 1047else if (itemTypeMapping is StructMapping && itemTypeMapping.TypeDesc!.IsRoot) 2290private readonly StructMapping _mapping; 2292internal ImportStructWorkItem(StructModel model, StructMapping mapping) 2299internal StructMapping Mapping { get { return _mapping; } } 2331internal bool Contains(StructMapping mapping) 2336internal int IndexOf(StructMapping mapping)
System\Xml\Serialization\XmlSchemaExporter.cs (9)
355else if (mapping is StructMapping) 356ExportStructMapping((StructMapping)mapping, ns, null); 382else if (mapping is StructMapping) 384ExportStructMapping((StructMapping)mapping, ns, element); 944if (mapping is StructMapping && mapping.TypeDesc!.IsRoot) 946ExportDerivedMappings((StructMapping)mapping); 959private XmlQualifiedName ExportStructMapping(StructMapping mapping, string? ns, XmlSchemaElement? element) 1131private void ExportDerivedMappings(StructMapping mapping) 1135for (StructMapping? derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping)
System\Xml\Serialization\XmlSchemaImporter.cs (20)
56if (element.Mapping is StructMapping) 58MakeDerived((StructMapping)element.Mapping, baseType, baseTypeCanBeIndirect); 66MakeDerived((StructMapping)element.Mapping!, baseType, baseTypeCanBeIndirect); 109if (accessor.Mapping is StructMapping) 111MakeDerived((StructMapping)accessor.Mapping, baseType, baseTypeCanBeIndirect); 119MakeDerived((StructMapping)accessor.Mapping!, baseType, baseTypeCanBeIndirect); 203if (baseType != null && accessor.Mapping is StructMapping) 204MakeDerived((StructMapping)accessor.Mapping, baseType, baseTypeCanBeIndirect); 495private StructMapping ImportStructType(XmlSchemaType type, string? typeNs, string identifier, Type? baseType, bool arrayLike) 505if (baseMapping is StructMapping) 506baseTypeDesc = ((StructMapping)baseMapping).TypeDesc; 530if (previousMapping is StructMapping) 532return (StructMapping)previousMapping; 547StructMapping structMapping = new StructMapping(); 561structMapping.BaseMapping = (StructMapping)baseMapping; 588StructMapping? declaringMapping; 589MemberMapping? baseMember = ((StructMapping)baseMapping).FindDeclaringMapping(structMapping.Members[i], out declaringMapping, structMapping.TypeName); 606private StructMapping ImportStructDataType(XmlSchemaSimpleType dataType, string? typeNs, string identifier, Type baseType) 610StructMapping structMapping = new StructMapping(); 1550StructMapping xmlnsMapping = new StructMapping();
System\Xml\Serialization\XmlSerializationReader.cs (14)
2244if (mapping is StructMapping || mapping is EnumMapping || mapping is NullableMapping) 2256if (mapping is StructMapping) 2257WriteStructMethod((StructMapping)mapping); 2275if (mapping is StructMapping) 2277WriteStructMethod((StructMapping)mapping); 2390(mapping is StructMapping || mapping is EnumMapping || mapping is ArrayMapping || mapping is NullableMapping) && 3058private void WriteDerivedTypes(StructMapping mapping, bool isTypedReturn, string returnTypeName) 3060for (StructMapping? derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping) 3206private void WriteStructMethod(StructMapping structMapping) 3214private void WriteLiteralStructMethod(StructMapping structMapping) 3342StructMapping? declaringMapping; 3419private void WriteEncodedStructMethod(StructMapping structMapping) 3872if (mapping is StructMapping || mapping is ArrayMapping || mapping is PrimitiveMapping || mapping is NullableMapping) 4733else if (element.Mapping is StructMapping || (element.Mapping.IsSoap && element.Mapping is PrimitiveMapping))
System\Xml\Serialization\XmlSerializationReaderILGen.cs (9)
197if (mapping is StructMapping || mapping is EnumMapping || mapping is NullableMapping) 209if (mapping is StructMapping) 211WriteStructMethod((StructMapping)mapping); 1131private void WriteDerivedTypes(StructMapping mapping, bool isTypedReturn, string returnTypeName) 1133for (StructMapping? derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping) 1319private void WriteStructMethod(StructMapping structMapping) 1324private void WriteLiteralStructMethod(StructMapping structMapping) 1566StructMapping? declaringMapping; 3122else if (element.Mapping is StructMapping)
System\Xml\Serialization\XmlSerializationWriter.cs (13)
1697if (mapping is StructMapping) 1699StructMapping structMapping = (mapping as StructMapping)!; 2262if (mapping is StructMapping || mapping is EnumMapping) 2279if (mapping is StructMapping) 2280WriteStructMethod((StructMapping)mapping); 2294if (mapping is StructMapping) 2296WriteStructMethod((StructMapping)mapping); 2339(typeMapping is StructMapping || typeMapping is EnumMapping) && 2973private void WriteDerivedTypes(StructMapping mapping) 2975for (StructMapping? derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping) 3076private void WriteStructMethod(StructMapping mapping) 4085else if (element.Mapping is StructMapping structMapping)
System\Xml\Serialization\XmlSerializationWriterILGen.cs (7)
39if (mapping is StructMapping || mapping is EnumMapping) 53if (mapping is StructMapping) 55WriteStructMethod((StructMapping)mapping); 736private void WriteDerivedTypes(StructMapping mapping) 738for (StructMapping? derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping) 909private void WriteStructMethod(StructMapping mapping) 1988else if (element.Mapping is StructMapping structMapping)