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