6 types derived from TypeMapping
dotnet-svcutil-lib (6)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (6)
346
internal class PrimitiveMapping :
TypeMapping
357
internal class NullableMapping :
TypeMapping
373
internal class ArrayMapping :
TypeMapping
458
internal class StructMapping :
TypeMapping
, INameScope
1056
internal class MembersMapping :
TypeMapping
1095
internal class SpecialMapping :
TypeMapping
159 references to TypeMapping
dotnet-svcutil-lib (159)
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (1)
197
foreach (
TypeMapping
m in Scope.TypeMappings)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (4)
25
private
TypeMapping
_mapping;
35
internal
TypeMapping
Mapping
359
private
TypeMapping
_baseMapping;
361
internal
TypeMapping
BaseMapping
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapCodeExporter.cs (3)
86
private void ExportType(
TypeMapping
mapping)
228
TypeMapping
mapping = (
TypeMapping
)element.Mapping;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (15)
191
private
TypeMapping
ImportTypeMapping(TypeModel model, RecursionLimiter limiter)
196
private
TypeMapping
ImportTypeMapping(TypeModel model, string dataType, RecursionLimiter limiter)
242
TypeMapping
baseMapping = GetTypeMapping(xsdTypeName, typeNs, valueTypeDesc);
279
private
TypeMapping
GetTypeMapping(string typeName, string ns, TypeDesc typeDesc)
281
TypeMapping
mapping = (
TypeMapping
)_types[typeName, ns];
288
private NullableMapping CreateNullableMapping(
TypeMapping
baseMapping, Type type)
291
TypeMapping
existingMapping = (
TypeMapping
)_nullables[baseMapping.TypeName, baseMapping.Namespace];
452
TypeMapping
itemTypeMapping = ImportTypeMapping(model.Element, limiter);
493
TypeMapping
itemTypeMapping;
538
TypeMapping
existingMapping = (
TypeMapping
)_types[uniqueName, ns];
551
existingMapping = (
TypeMapping
)_types[uniqueName, ns];
754
private static ElementAccessor CreateElementAccessor(
TypeMapping
mapping, string ns)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaExporter.cs (1)
173
private XmlQualifiedName ExportTypeMapping(
TypeMapping
mapping, string ns)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (20)
59
TypeMapping
mapping = ImportType(name, false);
84
TypeMapping
typeMapping = ImportType(member.MemberType, true);
177
TypeMapping
mapping = ImportElementType(element, ns);
189
private
TypeMapping
ImportElementType(XmlSchemaElement element, string ns)
191
TypeMapping
mapping;
248
private
TypeMapping
ImportType(XmlQualifiedName name, bool excludeFromImport)
253
TypeMapping
mapping = (
TypeMapping
)ImportedMappings[type];
268
private
TypeMapping
ImportType(XmlSchemaComplexType type, string typeNs, bool excludeFromImport)
275
TypeMapping
mapping = ImportAnyType(type, typeNs);
282
private
TypeMapping
ImportAnyType(XmlSchemaComplexType type, string typeNs)
451
TypeMapping
mapping = GetRootMapping();
501
TypeMapping
mapping;
540
arrayMapping.TypeDesc = ((
TypeMapping
)itemAccessor.Mapping).TypeDesc.CreateArrayTypeDesc();
566
member.TypeDesc = ((
TypeMapping
)accessor.Mapping).TypeDesc;
577
private
TypeMapping
ImportDataType(XmlSchemaSimpleType dataType, string typeNs, string identifier, bool isList)
579
TypeMapping
mapping = ImportNonXsdPrimitiveDataType(dataType, typeNs);
617
private
TypeMapping
ImportEnumeratedDataType(XmlSchemaSimpleType dataType, string typeNs, string identifier, bool isList)
619
TypeMapping
mapping = (
TypeMapping
)ImportedMappings[dataType];
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (3)
761
internal
TypeMapping
GetTypeMappingFromTypeDesc(TypeDesc typeDesc)
763
foreach (
TypeMapping
typeMapping in TypeMappings)
1442
internal void AddTypeMapping(
TypeMapping
typeMapping)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (15)
112
private void ExportType(
TypeMapping
mapping, string ns)
117
private void ExportType(
TypeMapping
mapping, string name, string ns, ElementAccessor rootElement, bool checkReference)
181
private void AddRootMetadata(CodeAttributeDeclarationCollection metadata,
TypeMapping
typeMapping, string name, string ns, ElementAccessor rootElement)
321
private object ImportDefault(
TypeMapping
mapping, string defaultValue)
351
private object ImportDefaultValue(
TypeMapping
mapping, string defaultValue)
418
private void AddDefaultValueAttribute(CodeMemberField field, CodeAttributeDeclarationCollection metadata, object defaultValue,
TypeMapping
mapping, CodeCommentStatementCollection comments, TypeDesc memberTypeDesc, Accessor accessor, CodeConstructor ctor)
689
TypeMapping
elementMapping = arrayElement.Mapping;
717
TypeMapping
mapping = (
TypeMapping
)attribute.Mapping;
738
TypeMapping
mapping = (
TypeMapping
)member.Text.Mapping;
746
TypeMapping
mapping = (
TypeMapping
)element.Mapping;
791
ExportElement(metadata, elemName, sameNs ? null : element.Namespace, ((
TypeMapping
)element.Mapping).TypeDesc, ((
TypeMapping
)element.Mapping).TypeDesc, element.IsNullable, defaultForm ? XmlSchemaForm.None : element.Form, member.SequenceId);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (20)
126
TypeMapping
mapping = ImportTypeMapping(_modelScope.GetTypeModel(type), _defaultNs, ImportContext.Element, string.Empty, null, limiter);
294
else if (mapping is
TypeMapping
)
295
return ((
TypeMapping
)mapping).TypeDesc.FullName;
383
private
TypeMapping
ImportTypeMapping(TypeModel model, string ns, ImportContext context, string dataType, XmlAttributes a, RecursionLimiter limiter)
388
private
TypeMapping
ImportTypeMapping(TypeModel model, string ns, ImportContext context, string dataType, XmlAttributes a, bool repeats, bool openModel, RecursionLimiter limiter)
440
TypeMapping
baseMapping = GetTypeMapping(xsdTypeName, ns, valueTypeDesc, _types, null);
648
private NullableMapping CreateNullableMapping(
TypeMapping
baseMapping, Type type)
651
TypeMapping
existingMapping;
654
existingMapping = (
TypeMapping
)_nullables[baseMapping.TypeName, baseMapping.Namespace];
658
existingMapping = (
TypeMapping
)_anonymous[type];
712
private
TypeMapping
GetTypeMapping(string typeName, string ns, TypeDesc typeDesc, NameTable typeLib, Type type)
714
TypeMapping
mapping;
716
mapping = type == null ? null : (
TypeMapping
)_anonymous[type];
718
mapping = (
TypeMapping
)typeLib[typeName, ns];
1011
TypeMapping
itemTypeMapping;
1069
TypeMapping
existingMapping = (
TypeMapping
)_types[uniqueName, ns];
1082
existingMapping = (
TypeMapping
)_types[uniqueName, ns];
2218
private static void CheckNullable(bool isNullable, TypeDesc typeDesc,
TypeMapping
mapping)
2225
private static ElementAccessor CreateElementAccessor(
TypeMapping
mapping, string ns)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (5)
276
private void CheckForDuplicateType(
TypeMapping
mapping, string newNamespace)
886
ExportElementMapping(element, (
TypeMapping
)accessor.Mapping, accessor.Namespace, accessor.Any);
904
static internal string ExportDefaultValue(
TypeMapping
mapping, object value)
985
foreach (
TypeMapping
mapping in typeScope.TypeMappings)
1083
TypeMapping
textMapping = null;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (39)
78
internal
TypeMapping
GetDefaultMapping(TypeFlags flags)
93
ElementAccessor element = ImportElement(name, typeof(
TypeMapping
), baseType);
141
TypeMapping
typeMapping = ImportType(typeName, typeof(
TypeMapping
), baseType, TypeFlags.CanBeElementValue, true);
197
TypeMapping
typeMapping = ImportType(typeName, typeof(MembersMapping), null, TypeFlags.CanBeElementValue, true);
255
ElementAccessor accessor = ImportElement(name, typeof(
TypeMapping
), baseType);
339
TypeMapping
mapping = ImportElementType(element, identifier, desiredMappingType, baseType, ns);
371
private
TypeMapping
ImportElementType(XmlSchemaElement element, string identifier, Type desiredMappingType, Type baseType, string ns)
373
TypeMapping
mapping;
420
private void RunSchemaExtensions(
TypeMapping
mapping, XmlQualifiedName qname, XmlSchemaType type, XmlSchemaObject context, TypeFlags flags)
473
TypeMapping
top = ((ArrayMapping)mapping).TopLevelMapping;
519
ImportType(type.QualifiedName, typeof(
TypeMapping
), null, TypeFlags.CanBeElementValue, false);
526
private
TypeMapping
ImportType(XmlQualifiedName name, Type desiredMappingType, Type baseType, TypeFlags flags, bool addref)
532
TypeMapping
mapping = (
TypeMapping
)ImportedMappings[type];
553
private
TypeMapping
ImportType(XmlSchemaComplexType type, string typeNs, string identifier, Type desiredMappingType, Type baseType, TypeFlags flags)
560
if (desiredMappingType == typeof(
TypeMapping
))
562
TypeMapping
mapping = null;
603
TypeMapping
baseMapping = null;
608
baseMapping = ImportType(type.DerivedFrom, typeof(
TypeMapping
), null, TypeFlags.CanBeElementValue | TypeFlags.CanBeTextValue, false);
992
TypeMapping
itemMapping = item.Mapping;
1067
AddScopeElement(choiceElements, ImportElement(elements[j], identifier, typeof(
TypeMapping
), null, elements[j].QualifiedName.Namespace, true), ref duplicateElements, allowDuplicates);
1071
AddScopeElement(choiceElements, ImportElement(element, identifier, typeof(
TypeMapping
), null, element.QualifiedName.Namespace, false), ref duplicateElements, allowDuplicates);
1217
TypeMapping
mapping;
1223
mapping = ImportType(simpleContentType, typeof(
TypeMapping
), null, TypeFlags.CanBeElementValue | TypeFlags.CanBeTextValue, false);
1276
member.TypeDesc = ((
TypeMapping
)accessors[0].Mapping).TypeDesc;
1411
ElementAccessor itemAccessor = ImportElement(itemElement, identifier, typeof(
TypeMapping
), null, ns, false);
1415
arrayMapping.TypeDesc = ((
TypeMapping
)itemAccessor.Mapping).TypeDesc.CreateArrayTypeDesc();
1523
accessor = ImportElement(element, identifier, typeof(
TypeMapping
), null, ns, false);
1608
member.TypeDesc = ((
TypeMapping
)accessor.Mapping).TypeDesc;
1712
TypeMapping
mapping;
1719
mapping = (
TypeMapping
)ImportType(attribute.SchemaTypeName, typeof(
TypeMapping
), null, TypeFlags.CanBeAttributeValue, false);
1765
private
TypeMapping
ImportDataType(XmlSchemaSimpleType dataType, string typeNs, string identifier, Type baseType, TypeFlags flags, bool isList)
1770
TypeMapping
mapping = ImportNonXsdPrimitiveDataType(dataType, typeNs, flags);
1814
mapping = ImportType(list.ItemTypeName, typeof(
TypeMapping
), null, TypeFlags.CanBeAttributeValue, true);
1827
private
TypeMapping
ImportEnumeratedDataType(XmlSchemaSimpleType dataType, string typeNs, string identifier, TypeFlags flags, bool isList)
1829
TypeMapping
mapping = (
TypeMapping
)ImportedMappings[dataType];
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationGeneratedCode.cs (9)
46
private
TypeMapping
[] _referencedMethods;
75
internal virtual void GenerateMethod(
TypeMapping
mapping) { }
81
TypeMapping
mapping = _referencedMethods[--_references];
86
internal string ReferenceMapping(
TypeMapping
mapping)
99
private
TypeMapping
[] EnsureArrayIndex(
TypeMapping
[] a, int index)
101
if (a == null) return new
TypeMapping
[32];
103
TypeMapping
[] b = new
TypeMapping
[a.Length + 32];
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationILGen.cs (9)
29
private
TypeMapping
[] _referencedMethods;
110
internal virtual void GenerateMethod(
TypeMapping
mapping) { }
116
TypeMapping
mapping = _referencedMethods[--_references];
121
internal string ReferenceMapping(
TypeMapping
mapping)
131
private
TypeMapping
[] EnsureArrayIndex(
TypeMapping
[] a, int index)
133
if (a == null) return new
TypeMapping
[32];
135
TypeMapping
[] b = new
TypeMapping
[a.Length + 32];
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (9)
1539
foreach (
TypeMapping
mapping in scope.TypeMappings)
1552
foreach (
TypeMapping
mapping in scope.TypeMappings)
1565
internal override void GenerateMethod(
TypeMapping
mapping)
1610
foreach (
TypeMapping
typeMapping in scope.TypeMappings)
1635
private void WriteQualifiedNameElement(string name, string ns, object defaultValue, string source, bool nullable, bool IsSoap,
TypeMapping
mapping)
1717
private void WritePrimitive(string method, string name, string ns, object defaultValue, string source,
TypeMapping
mapping, bool writeXsiType, bool isElement, bool isNullable)
2082
TypeMapping
mapping = element.Mapping;
3888
TypeMapping
mapping = scope.GetTypeMappingFromTypeDesc(typeDesc);
3915
private void WriteMappingInfo(
TypeMapping
mapping, string typeVariable, Type type)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (5)
35
foreach (
TypeMapping
mapping in scope.TypeMappings)
46
internal override void GenerateMethod(
TypeMapping
mapping)
92
private void WriteQualifiedNameElement(string name, string ns, object defaultValue, SourceInfo source, bool nullable,
TypeMapping
mapping)
194
private void WritePrimitive(string method, string name, string ns, object defaultValue, SourceInfo source,
TypeMapping
mapping, bool writeXsiType, bool isElement, bool isNullable)
557
TypeMapping
mapping = element.Mapping;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlTypeMapping.cs (1)
20
internal
TypeMapping
Mapping