9 instantiations of StructMapping
System.Xml (9)
System\Xml\Serialization\SchemaImporter.cs (1)
165StructMapping mapping = new StructMapping();
System\Xml\Serialization\SoapReflectionImporter.cs (2)
237StructMapping mapping = new StructMapping(); 307mapping = new StructMapping();
System\Xml\Serialization\SoapSchemaImporter.cs (1)
294StructMapping structMapping = new StructMapping();
System\Xml\Serialization\XmlReflectionImporter.cs (2)
562StructMapping mapping = new StructMapping(); 656mapping = new StructMapping();
System\Xml\Serialization\XmlSchemaImporter.cs (3)
571StructMapping structMapping = new StructMapping(); 625StructMapping structMapping = new StructMapping(); 1441StructMapping xmlnsMapping = new StructMapping();
164 references to StructMapping
System.Xml (164)
System\Xml\Serialization\CodeExporter.cs (5)
157internal abstract void ExportDerivedStructs(StructMapping mapping); 165internal void ExportRoot(StructMapping mapping, Type includeType) { 170for (StructMapping derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping) { 256internal static void AddIncludeMetadata(CodeAttributeDeclarationCollection metadata, StructMapping mapping, Type type) { 259for (StructMapping derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping) {
System\Xml\Serialization\Mappings.cs (14)
322StructMapping topLevelMapping; 348internal StructMapping TopLevelMapping { 392StructMapping baseMapping; 393StructMapping derivedMappings; 394StructMapping nextDerivedMapping; 403internal StructMapping BaseMapping { 414for (StructMapping derived = derivedMappings; derived != null; derived = derived.NextDerivedMapping) { 422internal StructMapping DerivedMappings { 457internal StructMapping NextDerivedMapping { 467StructMapping mapping = this; 501internal MemberMapping FindDeclaringMapping(MemberMapping member, out StructMapping declaringMapping, string parent) { 523StructMapping m; 567StructMapping start = this; 574for (StructMapping derived = start.DerivedMappings; derived != null; derived = derived.NextDerivedMapping) {
System\Xml\Serialization\SchemaImporter.cs (6)
34StructMapping root; 138internal void MakeDerived(StructMapping structMapping, Type baseType, bool baseTypeCanBeIndirect) { 163StructMapping CreateRootMapping() { 165StructMapping mapping = new StructMapping(); 175internal StructMapping GetRootMapping() { 181internal StructMapping ImportRootMapping() {
System\Xml\Serialization\SoapCodeExporter.cs (5)
95else if (mapping is StructMapping) { 96codeClass = ExportStruct((StructMapping)mapping); 120CodeTypeDeclaration ExportStruct(StructMapping mapping) { 172internal override void ExportDerivedStructs(StructMapping mapping) { 173for (StructMapping derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping)
System\Xml\Serialization\SoapReflectionImporter.cs (10)
27StructMapping root; 235StructMapping CreateRootMapping() { 237StructMapping mapping = new StructMapping(); 247StructMapping GetRootMapping() { 294StructMapping ImportStructLikeMapping(StructModel model, RecursionLimiter limiter) { 305StructMapping mapping = (StructMapping)GetTypeMapping(typeName, typeNs, model.TypeDesc); 347bool InitializeStructMembers(StructMapping mapping, StructModel model, RecursionLimiter limiter) { 351StructMapping baseMapping = ImportStructLikeMapping((StructModel)modelScope.GetTypeModel(model.Type.BaseType, false), limiter); 460else if (itemTypeMapping is StructMapping) {
System\Xml\Serialization\SoapSchemaExporter.cs (6)
165else if (mapping is StructMapping) 166return ExportStructMapping((StructMapping)mapping, ns); 268XmlQualifiedName ExportRootMapping(StructMapping mapping) { 276XmlQualifiedName ExportStructMapping(StructMapping mapping, string ns) { 344void ExportDerivedMappings(StructMapping mapping) { 345for (StructMapping derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping) {
System\Xml\Serialization\SoapSchemaImporter.cs (12)
63if (mapping is StructMapping) { 64MakeDerived((StructMapping)mapping, baseType, baseTypeCanBeIndirect); 86if (!(typeMapping is StructMapping)) return ImportMembersMapping(name, ns, new SoapSchemaMember[] { member }); 90mapping.Members = ((StructMapping)typeMapping).Members; 145if (member.Accessor.Mapping is StructMapping) 146MakeDerived((StructMapping)member.Accessor.Mapping, baseType, baseTypeCanBeIndirect); 270StructMapping ImportStructType(XmlSchemaComplexType type, string typeNs, bool excludeFromImport) { 283if (baseMapping is StructMapping) 284baseTypeDesc = ((StructMapping)baseMapping).TypeDesc; 291return (StructMapping)previousMapping; 294StructMapping structMapping = new StructMapping(); 301structMapping.BaseMapping = (StructMapping)baseMapping;
System\Xml\Serialization\Types.cs (7)
927internal static MemberMapping[] GetAllMembers(StructMapping mapping) { 935internal static void GetAllMembers(StructMapping mapping, ArrayList list) { 944internal static MemberMapping[] GetAllMembers(StructMapping mapping, System.Collections.Generic.Dictionary<string, MemberInfo> memberInfos) { 950internal static MemberMapping[] GetSettableMembers(StructMapping structMapping) { 956static void GetSettableMembers(StructMapping mapping, ArrayList list) { 987internal static MemberMapping[] GetSettableMembers(StructMapping mapping, System.Collections.Generic.Dictionary<string, MemberInfo> memberInfos) { 993static void PopulateMemberInfos(StructMapping structMapping, MemberMapping[] mappings, System.Collections.Generic.Dictionary<string, MemberInfo> memberInfos)
System\Xml\Serialization\XmlCodeExporter.cs (8)
113if (mapping is StructMapping && checkReference && ((StructMapping)mapping).ReferencedByTopLevelElement && rootElement == null) 130else if (mapping is StructMapping) { 131codeClass = ExportStruct((StructMapping)mapping); 488CodeTypeDeclaration ExportStruct(StructMapping mapping) { 561internal override void ExportDerivedStructs(StructMapping mapping) { 562for (StructMapping derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping) 576if (mapping.Mapping is StructMapping || mapping.Mapping is EnumMapping) return;
System\Xml\Serialization\XmlReflectionImporter.cs (15)
36StructMapping root; 560StructMapping CreateRootMapping() { 562StructMapping mapping = new StructMapping(); 619StructMapping GetRootMapping() { 640StructMapping ImportStructLikeMapping(StructModel model, string ns, bool openModel, XmlAttributes a, RecursionLimiter limiter) { 654StructMapping mapping = (StructMapping)GetTypeMapping(typeName, typeNs, model.TypeDesc, types, model.Type); 699bool InitializeStructMembers(StructMapping mapping, StructModel model, bool openModel, string typeName, RecursionLimiter limiter) { 709StructMapping baseMapping = ImportStructLikeMapping((StructModel)baseModel, mapping.Namespace, openModel, null, limiter); 910else if (itemTypeMapping is StructMapping && itemTypeMapping.TypeDesc.IsRoot) { 1977StructMapping mapping; 1979internal ImportStructWorkItem(StructModel model, StructMapping mapping) { 1985internal StructMapping Mapping { get { return mapping; } } 2010internal bool Contains(StructMapping mapping) { 2014internal int IndexOf(StructMapping mapping) {
System\Xml\Serialization\XmlSchemaExporter.cs (9)
344else if (mapping is StructMapping) 345ExportStructMapping((StructMapping)mapping, ns, null); 368else if (mapping is StructMapping) { 369ExportStructMapping((StructMapping)mapping, ns, element); 845if (mapping is StructMapping && mapping.TypeDesc.IsRoot) { 846ExportDerivedMappings((StructMapping) mapping); 857XmlQualifiedName ExportStructMapping(StructMapping mapping, string ns, XmlSchemaElement element) { 998void ExportDerivedMappings(StructMapping mapping) { 1001for (StructMapping derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping) {
System\Xml\Serialization\XmlSchemaImporter.cs (20)
93if (element.Mapping is StructMapping) { 94MakeDerived((StructMapping)element.Mapping, baseType, baseTypeCanBeIndirect); 100MakeDerived((StructMapping)element.Mapping, baseType, baseTypeCanBeIndirect); 146if (accessor.Mapping is StructMapping) { 147MakeDerived((StructMapping)accessor.Mapping, baseType, baseTypeCanBeIndirect); 153MakeDerived((StructMapping)accessor.Mapping, baseType, baseTypeCanBeIndirect); 234if (baseType != null && accessor.Mapping is StructMapping) 235MakeDerived((StructMapping)accessor.Mapping, baseType, baseTypeCanBeIndirect); 528StructMapping ImportStructType(XmlSchemaType type, string typeNs, string identifier, Type baseType, bool arrayLike) { 536if (baseMapping is StructMapping) 537baseTypeDesc = ((StructMapping)baseMapping).TypeDesc; 558if (previousMapping is StructMapping) { 559return (StructMapping)previousMapping; 571StructMapping structMapping = new StructMapping(); 584structMapping.BaseMapping = (StructMapping)baseMapping; 607StructMapping declaringMapping; 608MemberMapping baseMember = ((StructMapping)baseMapping).FindDeclaringMapping(structMapping.Members[i], out declaringMapping, structMapping.TypeName); 622StructMapping ImportStructDataType(XmlSchemaSimpleType dataType, string typeNs, string identifier, Type baseType) { 625StructMapping structMapping = new StructMapping(); 1441StructMapping xmlnsMapping = new StructMapping();
System\Xml\Serialization\XmlSerializationReader.cs (14)
2128if (mapping is StructMapping || mapping is EnumMapping || mapping is NullableMapping) 2138if (mapping is StructMapping) 2139WriteStructMethod((StructMapping)mapping); 2154if (mapping is StructMapping) { 2155WriteStructMethod((StructMapping)mapping); 2255(mapping is StructMapping || mapping is EnumMapping || mapping is ArrayMapping || mapping is NullableMapping) && 2863void WriteDerivedTypes(StructMapping mapping, bool isTypedReturn, string returnTypeName) { 2865for (StructMapping derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping) { 3000void WriteStructMethod(StructMapping structMapping) { 3007void WriteLiteralStructMethod(StructMapping structMapping) { 3120StructMapping declaringMapping; 3190void WriteEncodedStructMethod(StructMapping structMapping) { 3608if (mapping is StructMapping || mapping is ArrayMapping || mapping is PrimitiveMapping || mapping is NullableMapping) { 4345else if (element.Mapping is StructMapping || (element.Mapping.IsSoap && element.Mapping is PrimitiveMapping)) {
System\Xml\Serialization\XmlSerializationReaderILGen.cs (9)
195if (mapping is StructMapping || mapping is EnumMapping || mapping is NullableMapping) 207if (mapping is StructMapping) { 208WriteStructMethod((StructMapping)mapping); 1159void WriteDerivedTypes(StructMapping mapping, bool isTypedReturn, string returnTypeName) { 1161for (StructMapping derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping) { 1350void WriteStructMethod(StructMapping structMapping) { 1354void WriteLiteralStructMethod(StructMapping structMapping) { 1594StructMapping declaringMapping; 3150else if (element.Mapping is StructMapping) {
System\Xml\Serialization\XmlSerializationWriter.cs (15)
1320if (mapping is StructMapping || mapping is EnumMapping){ 1333if (mapping is StructMapping) 1334WriteStructMethod((StructMapping)mapping); 1346if (mapping is StructMapping) { 1347WriteStructMethod((StructMapping)mapping); 1381(typeMapping is StructMapping || typeMapping is EnumMapping) && 1931void WriteDerivedTypes(StructMapping mapping) { 1932for (StructMapping derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping) { 2025void WriteStructMethod(StructMapping mapping) { 2901else if (element.Mapping is StructMapping) { 2902StructMapping mapping = (StructMapping)element.Mapping; 3430if(mapping is StructMapping){ 3431StructMapping structMapping = mapping as StructMapping;
System\Xml\Serialization\XmlSerializationWriterILGen.cs (9)
36if (mapping is StructMapping || mapping is EnumMapping) { 49if (mapping is StructMapping) { 50WriteStructMethod((StructMapping)mapping); 692void WriteDerivedTypes(StructMapping mapping) { 693for (StructMapping derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping) { 875void WriteStructMethod(StructMapping mapping) { 1923else if (element.Mapping is StructMapping) { 1924StructMapping mapping = (StructMapping)element.Mapping;