9 instantiations of StructMapping
dotnet-svcutil-lib (9)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SchemaImporter.cs (1)
183
StructMapping mapping = new
StructMapping
();
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (2)
259
StructMapping mapping = new
StructMapping
();
340
mapping = new
StructMapping
();
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (1)
323
StructMapping structMapping = new
StructMapping
();
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (2)
639
StructMapping mapping = new
StructMapping
();
744
mapping = new
StructMapping
();
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (3)
652
StructMapping structMapping = new
StructMapping
();
713
StructMapping structMapping = new
StructMapping
();
1654
StructMapping xmlnsMapping = new
StructMapping
();
141 references to StructMapping
dotnet-svcutil-lib (141)
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (5)
171
internal abstract void ExportDerivedStructs(
StructMapping
mapping);
180
internal void ExportRoot(
StructMapping
mapping, Type includeType)
187
for (
StructMapping
derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping)
293
internal static void AddIncludeMetadata(CodeAttributeDeclarationCollection metadata,
StructMapping
mapping, Type type)
297
for (
StructMapping
derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (14)
378
private
StructMapping
_topLevelMapping;
408
internal
StructMapping
TopLevelMapping
461
private
StructMapping
_baseMapping;
462
private
StructMapping
_derivedMappings;
463
private
StructMapping
_nextDerivedMapping;
472
internal
StructMapping
BaseMapping
488
for (
StructMapping
derived = _derivedMappings; derived != null; derived = derived.NextDerivedMapping)
497
internal
StructMapping
DerivedMappings
541
internal
StructMapping
NextDerivedMapping
555
StructMapping
mapping = this;
595
internal MemberMapping FindDeclaringMapping(MemberMapping member, out
StructMapping
declaringMapping, string parent)
623
StructMapping
m;
680
StructMapping
start = this;
687
for (
StructMapping
derived = start.DerivedMappings; derived != null; derived = derived.NextDerivedMapping)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SchemaImporter.cs (6)
30
private
StructMapping
_root;
150
internal void MakeDerived(
StructMapping
structMapping, Type baseType, bool baseTypeCanBeIndirect)
180
private
StructMapping
CreateRootMapping()
183
StructMapping
mapping = new StructMapping();
193
internal
StructMapping
GetRootMapping()
200
internal
StructMapping
ImportRootMapping()
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapCodeExporter.cs (5)
98
else if (mapping is
StructMapping
)
100
codeClass = ExportStruct((
StructMapping
)mapping);
122
private CodeTypeDeclaration ExportStruct(
StructMapping
mapping)
182
internal override void ExportDerivedStructs(
StructMapping
mapping)
184
for (
StructMapping
derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (10)
23
private
StructMapping
_root;
256
private
StructMapping
CreateRootMapping()
259
StructMapping
mapping = new StructMapping();
269
private
StructMapping
GetRootMapping()
325
private
StructMapping
ImportStructLikeMapping(StructModel model, RecursionLimiter limiter)
337
StructMapping
mapping = (
StructMapping
)GetTypeMapping(typeName, typeNs, model.TypeDesc);
383
private bool InitializeStructMembers(
StructMapping
mapping, StructModel model, RecursionLimiter limiter)
389
StructMapping
baseMapping = ImportStructLikeMapping((StructModel)_modelScope.GetTypeModel(model.Type.GetTypeInfo().BaseType, false), limiter);
510
else if (itemTypeMapping is
StructMapping
)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaExporter.cs (6)
191
else if (mapping is
StructMapping
)
192
return ExportStructMapping((
StructMapping
)mapping, ns);
307
private XmlQualifiedName ExportRootMapping(
StructMapping
mapping)
317
private XmlQualifiedName ExportStructMapping(
StructMapping
mapping, string ns)
398
private void ExportDerivedMappings(
StructMapping
mapping)
400
for (
StructMapping
derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (12)
60
if (mapping is
StructMapping
)
62
MakeDerived((
StructMapping
)mapping, baseType, baseTypeCanBeIndirect);
85
if (!(typeMapping is
StructMapping
)) return ImportMembersMapping(name, ns, new SoapSchemaMember[] { member });
89
mapping.Members = ((
StructMapping
)typeMapping).Members;
150
if (member.Accessor.Mapping is
StructMapping
)
151
MakeDerived((
StructMapping
)member.Accessor.Mapping, baseType, baseTypeCanBeIndirect);
295
private
StructMapping
ImportStructType(XmlSchemaComplexType type, string typeNs, bool excludeFromImport)
311
if (baseMapping is
StructMapping
)
312
baseTypeDesc = ((
StructMapping
)baseMapping).TypeDesc;
320
return (
StructMapping
)previousMapping;
323
StructMapping
structMapping = new StructMapping();
330
structMapping.BaseMapping = (
StructMapping
)baseMapping;
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (7)
1074
internal static MemberMapping[] GetAllMembers(
StructMapping
mapping)
1083
internal static void GetAllMembers(
StructMapping
mapping, ArrayList list)
1095
internal static MemberMapping[] GetAllMembers(
StructMapping
mapping, System.Collections.Generic.Dictionary<string, MemberInfo> memberInfos)
1102
internal static MemberMapping[] GetSettableMembers(
StructMapping
structMapping)
1109
private static void GetSettableMembers(
StructMapping
mapping, ArrayList list)
1148
internal static MemberMapping[] GetSettableMembers(
StructMapping
mapping, System.Collections.Generic.Dictionary<string, MemberInfo> memberInfos)
1155
private static void PopulateMemberInfos(
StructMapping
structMapping, MemberMapping[] mappings, System.Collections.Generic.Dictionary<string, MemberInfo> memberInfos)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (8)
122
if (mapping is
StructMapping
&& checkReference && ((
StructMapping
)mapping).ReferencedByTopLevelElement && rootElement == null)
143
else if (mapping is
StructMapping
)
145
codeClass = ExportStruct((
StructMapping
)mapping);
560
private CodeTypeDeclaration ExportStruct(
StructMapping
mapping)
645
internal override void ExportDerivedStructs(
StructMapping
mapping)
647
for (
StructMapping
derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping)
662
if (mapping.Mapping is
StructMapping
|| mapping.Mapping is EnumMapping) return;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (15)
35
private
StructMapping
_root;
636
private
StructMapping
CreateRootMapping()
639
StructMapping
mapping = new StructMapping();
702
private
StructMapping
GetRootMapping()
726
private
StructMapping
ImportStructLikeMapping(StructModel model, string ns, bool openModel, XmlAttributes a, RecursionLimiter limiter)
741
StructMapping
mapping = (
StructMapping
)GetTypeMapping(typeName, typeNs, model.TypeDesc, _types, model.Type);
791
private bool InitializeStructMembers(
StructMapping
mapping, StructModel model, bool openModel, string typeName, RecursionLimiter limiter)
804
StructMapping
baseMapping = ImportStructLikeMapping((StructModel)baseModel, mapping.Namespace, openModel, null, limiter);
1042
else if (itemTypeMapping is
StructMapping
&& itemTypeMapping.TypeDesc.IsRoot)
2277
private
StructMapping
_mapping;
2279
internal ImportStructWorkItem(StructModel model,
StructMapping
mapping)
2286
internal
StructMapping
Mapping { get { return _mapping; } }
2318
internal bool Contains(
StructMapping
mapping)
2323
internal int IndexOf(
StructMapping
mapping)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (9)
393
else if (mapping is
StructMapping
)
394
ExportStructMapping((
StructMapping
)mapping, ns, null);
421
else if (mapping is
StructMapping
)
423
ExportStructMapping((
StructMapping
)mapping, ns, element);
987
if (mapping is
StructMapping
&& mapping.TypeDesc.IsRoot)
989
ExportDerivedMappings((
StructMapping
)mapping);
1002
private XmlQualifiedName ExportStructMapping(
StructMapping
mapping, string ns, XmlSchemaElement element)
1174
private void ExportDerivedMappings(
StructMapping
mapping)
1178
for (
StructMapping
derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (20)
95
if (element.Mapping is
StructMapping
)
97
MakeDerived((
StructMapping
)element.Mapping, baseType, baseTypeCanBeIndirect);
105
MakeDerived((
StructMapping
)element.Mapping, baseType, baseTypeCanBeIndirect);
155
if (accessor.Mapping is
StructMapping
)
157
MakeDerived((
StructMapping
)accessor.Mapping, baseType, baseTypeCanBeIndirect);
165
MakeDerived((
StructMapping
)accessor.Mapping, baseType, baseTypeCanBeIndirect);
256
if (baseType != null && accessor.Mapping is
StructMapping
)
257
MakeDerived((
StructMapping
)accessor.Mapping, baseType, baseTypeCanBeIndirect);
600
private
StructMapping
ImportStructType(XmlSchemaType type, string typeNs, string identifier, Type baseType, bool arrayLike)
610
if (baseMapping is
StructMapping
)
611
baseTypeDesc = ((
StructMapping
)baseMapping).TypeDesc;
635
if (previousMapping is
StructMapping
)
637
return (
StructMapping
)previousMapping;
652
StructMapping
structMapping = new StructMapping();
666
structMapping.BaseMapping = (
StructMapping
)baseMapping;
693
StructMapping
declaringMapping;
694
MemberMapping baseMember = ((
StructMapping
)baseMapping).FindDeclaringMapping(structMapping.Members[i], out declaringMapping, structMapping.TypeName);
709
private
StructMapping
ImportStructDataType(XmlSchemaSimpleType dataType, string typeNs, string identifier, Type baseType)
713
StructMapping
structMapping = new StructMapping();
1654
StructMapping
xmlnsMapping = new StructMapping();
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (15)
1541
if (mapping is
StructMapping
|| mapping is EnumMapping)
1557
if (mapping is
StructMapping
)
1558
WriteStructMethod((
StructMapping
)mapping);
1571
if (mapping is
StructMapping
)
1573
WriteStructMethod((
StructMapping
)mapping);
1613
(typeMapping is
StructMapping
|| typeMapping is EnumMapping) &&
2240
private void WriteDerivedTypes(
StructMapping
mapping)
2242
for (
StructMapping
derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping)
2341
private void WriteStructMethod(
StructMapping
mapping)
3346
else if (element.Mapping is
StructMapping
)
3348
StructMapping
mapping = (
StructMapping
)element.Mapping;
3918
if (mapping is
StructMapping
)
3920
StructMapping
structMapping = mapping as
StructMapping
;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (9)
37
if (mapping is
StructMapping
|| mapping is EnumMapping)
52
if (mapping is
StructMapping
)
54
WriteStructMethod((
StructMapping
)mapping);
760
private void WriteDerivedTypes(
StructMapping
mapping)
762
for (
StructMapping
derived = mapping.DerivedMappings; derived != null; derived = derived.NextDerivedMapping)
951
private void WriteStructMethod(
StructMapping
mapping)
2103
else if (element.Mapping is
StructMapping
)
2105
StructMapping
mapping = (
StructMapping
)element.Mapping;