6 types derived from TypeMapping
System.Xml (6)
System\Xml\Serialization\Mappings.cs (6)
296
internal class PrimitiveMapping :
TypeMapping
{
305
internal class NullableMapping :
TypeMapping
{
318
internal class ArrayMapping :
TypeMapping
{
390
internal class StructMapping :
TypeMapping
, INameScope {
889
internal class MembersMapping :
TypeMapping
{
922
internal class SpecialMapping :
TypeMapping
{
174 references to TypeMapping
System.Xml (174)
System\Xml\Serialization\CodeExporter.cs (1)
178
foreach (
TypeMapping
m in Scope.TypeMappings) {
System\Xml\Serialization\Mappings.cs (4)
27
TypeMapping
mapping;
37
internal
TypeMapping
Mapping {
306
TypeMapping
baseMapping;
308
internal
TypeMapping
BaseMapping {
System\Xml\Serialization\SoapCodeExporter.cs (3)
86
void ExportType(
TypeMapping
mapping) {
210
TypeMapping
mapping = (
TypeMapping
)element.Mapping;
System\Xml\Serialization\SoapReflectionImporter.cs (15)
179
TypeMapping
ImportTypeMapping(TypeModel model, RecursionLimiter limiter) {
183
TypeMapping
ImportTypeMapping(TypeModel model, string dataType, RecursionLimiter limiter) {
222
TypeMapping
baseMapping = GetTypeMapping(xsdTypeName, typeNs, valueTypeDesc);
255
TypeMapping
GetTypeMapping(string typeName, string ns, TypeDesc typeDesc) {
256
TypeMapping
mapping = (
TypeMapping
)types[typeName, ns];
263
NullableMapping CreateNullableMapping(
TypeMapping
baseMapping, Type type) {
265
TypeMapping
existingMapping = (
TypeMapping
)nullables[baseMapping.TypeName, baseMapping.Namespace];
407
TypeMapping
itemTypeMapping = ImportTypeMapping(model.Element, limiter);
445
TypeMapping
itemTypeMapping;
483
TypeMapping
existingMapping = (
TypeMapping
)types[uniqueName, ns];
493
existingMapping = (
TypeMapping
)types[uniqueName, ns];
673
static ElementAccessor CreateElementAccessor(
TypeMapping
mapping, string ns) {
System\Xml\Serialization\SoapSchemaExporter.cs (1)
151
XmlQualifiedName ExportTypeMapping(
TypeMapping
mapping, string ns) {
System\Xml\Serialization\SoapSchemaImporter.cs (20)
62
TypeMapping
mapping = ImportType(name, false);
85
TypeMapping
typeMapping = ImportType(member.MemberType, true);
169
TypeMapping
mapping = ImportElementType(element, ns);
181
TypeMapping
ImportElementType(XmlSchemaElement element, string ns) {
182
TypeMapping
mapping;
228
TypeMapping
ImportType(XmlQualifiedName name, bool excludeFromImport) {
232
TypeMapping
mapping = (
TypeMapping
)ImportedMappings[type];
246
TypeMapping
ImportType(XmlSchemaComplexType type, string typeNs, bool excludeFromImport) {
251
TypeMapping
mapping = ImportAnyType(type, typeNs);
258
TypeMapping
ImportAnyType(XmlSchemaComplexType type, string typeNs){
402
TypeMapping
mapping = GetRootMapping();
446
TypeMapping
mapping;
482
arrayMapping.TypeDesc = ((
TypeMapping
)itemAccessor.Mapping).TypeDesc.CreateArrayTypeDesc();
504
member.TypeDesc = ((
TypeMapping
)accessor.Mapping).TypeDesc;
514
TypeMapping
ImportDataType(XmlSchemaSimpleType dataType, string typeNs, string identifier, bool isList) {
515
TypeMapping
mapping = ImportNonXsdPrimitiveDataType(dataType, typeNs);
546
TypeMapping
ImportEnumeratedDataType(XmlSchemaSimpleType dataType, string typeNs, string identifier, bool isList) {
547
TypeMapping
mapping = (
TypeMapping
)ImportedMappings[dataType];
System\Xml\Serialization\Types.cs (3)
670
internal
TypeMapping
GetTypeMappingFromTypeDesc(TypeDesc typeDesc) {
671
foreach (
TypeMapping
typeMapping in TypeMappings) {
1242
internal void AddTypeMapping(
TypeMapping
typeMapping) {
System\Xml\Serialization\XmlCodeExporter.cs (15)
105
void ExportType(
TypeMapping
mapping, string ns) {
109
void ExportType(
TypeMapping
mapping, string name, string ns, ElementAccessor rootElement, bool checkReference) {
166
void AddRootMetadata(CodeAttributeDeclarationCollection metadata,
TypeMapping
typeMapping, string name, string ns, ElementAccessor rootElement) {
288
object ImportDefault(
TypeMapping
mapping, string defaultValue) {
313
object ImportDefaultValue(
TypeMapping
mapping, string defaultValue) {
373
void AddDefaultValueAttribute(CodeMemberField field, CodeAttributeDeclarationCollection metadata, object defaultValue,
TypeMapping
mapping, CodeCommentStatementCollection comments, TypeDesc memberTypeDesc, Accessor accessor, CodeConstructor ctor) {
599
TypeMapping
elementMapping = arrayElement.Mapping;
623
TypeMapping
mapping = (
TypeMapping
)attribute.Mapping;
642
TypeMapping
mapping = (
TypeMapping
)member.Text.Mapping;
649
TypeMapping
mapping = (
TypeMapping
)element.Mapping;
688
ExportElement(metadata, elemName, sameNs ? null : element.Namespace, ((
TypeMapping
)element.Mapping).TypeDesc, ((
TypeMapping
)element.Mapping).TypeDesc, element.IsNullable, defaultForm ? XmlSchemaForm.None : element.Form, member.SequenceId);
System\Xml\Serialization\XmlReflectionImporter.cs (20)
118
TypeMapping
mapping = ImportTypeMapping(modelScope.GetTypeModel(type), defaultNs, ImportContext.Element, string.Empty, null, limiter);
266
else if (mapping is
TypeMapping
)
267
return ((
TypeMapping
)mapping).TypeDesc.FullName;
344
TypeMapping
ImportTypeMapping(TypeModel model, string ns, ImportContext context, string dataType, XmlAttributes a, RecursionLimiter limiter) {
348
TypeMapping
ImportTypeMapping(TypeModel model, string ns, ImportContext context, string dataType, XmlAttributes a, bool repeats, bool openModel, RecursionLimiter limiter) {
392
TypeMapping
baseMapping = GetTypeMapping(xsdTypeName, ns, valueTypeDesc, types, null);
571
NullableMapping CreateNullableMapping(
TypeMapping
baseMapping, Type type) {
573
TypeMapping
existingMapping;
576
existingMapping = (
TypeMapping
)nullables[baseMapping.TypeName, baseMapping.Namespace];
580
existingMapping = (
TypeMapping
)anonymous[type];
627
TypeMapping
GetTypeMapping(string typeName, string ns, TypeDesc typeDesc, NameTable typeLib, Type type) {
628
TypeMapping
mapping ;
630
mapping = type == null ? null : (
TypeMapping
)anonymous[type];
632
mapping = (
TypeMapping
)typeLib[typeName, ns];
884
TypeMapping
itemTypeMapping;
934
TypeMapping
existingMapping = (
TypeMapping
)types[uniqueName, ns];
944
existingMapping = (
TypeMapping
)types[uniqueName, ns];
1927
static void CheckNullable(bool isNullable, TypeDesc typeDesc,
TypeMapping
mapping) {
1933
static ElementAccessor CreateElementAccessor(
TypeMapping
mapping, string ns) {
System\Xml\Serialization\XmlSchemaExporter.cs (5)
245
void CheckForDuplicateType(
TypeMapping
mapping, string newNamespace) {
756
ExportElementMapping(element, (
TypeMapping
)accessor.Mapping, accessor.Namespace, accessor.Any);
772
static internal string ExportDefaultValue(
TypeMapping
mapping, object value) {
844
foreach (
TypeMapping
mapping in typeScope.TypeMappings) {
924
TypeMapping
textMapping = null;
System\Xml\Serialization\XmlSchemaImporter.cs (39)
78
internal
TypeMapping
GetDefaultMapping(TypeFlags flags) {
91
ElementAccessor element = ImportElement(name, typeof(
TypeMapping
), baseType);
132
TypeMapping
typeMapping = ImportType(typeName, typeof(
TypeMapping
), baseType, TypeFlags.CanBeElementValue, true);
181
TypeMapping
typeMapping = ImportType(typeName, typeof(MembersMapping), null, TypeFlags.CanBeElementValue, true);
233
ElementAccessor accessor = ImportElement(name, typeof(
TypeMapping
), baseType);
309
TypeMapping
mapping = ImportElementType(element, identifier, desiredMappingType, baseType, ns);
337
TypeMapping
ImportElementType(XmlSchemaElement element, string identifier, Type desiredMappingType, Type baseType, string ns) {
338
TypeMapping
mapping;
377
void RunSchemaExtensions(
TypeMapping
mapping, XmlQualifiedName qname, XmlSchemaType type, XmlSchemaObject context, TypeFlags flags) {
419
TypeMapping
top = ((ArrayMapping)mapping).TopLevelMapping;
456
ImportType(type.QualifiedName, typeof(
TypeMapping
), null, TypeFlags.CanBeElementValue, false);
463
TypeMapping
ImportType(XmlQualifiedName name, Type desiredMappingType, Type baseType, TypeFlags flags, bool addref) {
468
TypeMapping
mapping = (
TypeMapping
)ImportedMappings[type];
488
TypeMapping
ImportType(XmlSchemaComplexType type, string typeNs, string identifier, Type desiredMappingType, Type baseType, TypeFlags flags) {
493
if (desiredMappingType == typeof(
TypeMapping
)) {
494
TypeMapping
mapping = null;
530
TypeMapping
baseMapping = null;
534
baseMapping = ImportType(type.DerivedFrom, typeof(
TypeMapping
), null, TypeFlags.CanBeElementValue | TypeFlags.CanBeTextValue, false);
865
TypeMapping
itemMapping = item.Mapping;
926
AddScopeElement(choiceElements, ImportElement(elements[j], identifier, typeof(
TypeMapping
), null, elements[j].QualifiedName.Namespace, true), ref duplicateElements, allowDuplicates);
930
AddScopeElement(choiceElements, ImportElement(element, identifier, typeof(
TypeMapping
), null, element.QualifiedName.Namespace, false), ref duplicateElements, allowDuplicates);
1051
TypeMapping
mapping;
1056
mapping = ImportType(simpleContentType, typeof(
TypeMapping
), null, TypeFlags.CanBeElementValue | TypeFlags.CanBeTextValue, false);
1102
member.TypeDesc = ((
TypeMapping
)accessors[0].Mapping).TypeDesc;
1225
ElementAccessor itemAccessor = ImportElement(itemElement, identifier, typeof(
TypeMapping
), null, ns, false);
1229
arrayMapping.TypeDesc = ((
TypeMapping
)itemAccessor.Mapping).TypeDesc.CreateArrayTypeDesc();
1329
accessor = ImportElement(element, identifier, typeof(
TypeMapping
), null, ns, false);
1404
member.TypeDesc = ((
TypeMapping
)accessor.Mapping).TypeDesc;
1494
TypeMapping
mapping;
1501
mapping = (
TypeMapping
)ImportType(attribute.SchemaTypeName, typeof(
TypeMapping
), null, TypeFlags.CanBeAttributeValue, false);
1540
TypeMapping
ImportDataType(XmlSchemaSimpleType dataType, string typeNs, string identifier, Type baseType, TypeFlags flags, bool isList) {
1544
TypeMapping
mapping = ImportNonXsdPrimitiveDataType(dataType, typeNs, flags);
1578
mapping = ImportType(list.ItemTypeName, typeof(
TypeMapping
), null, TypeFlags.CanBeAttributeValue, true);
1590
TypeMapping
ImportEnumeratedDataType(XmlSchemaSimpleType dataType, string typeNs, string identifier, TypeFlags flags, bool isList) {
1591
TypeMapping
mapping = (
TypeMapping
)ImportedMappings[dataType];
System\Xml\Serialization\XmlSerializationGeneratedCode.cs (9)
60
TypeMapping
[] referencedMethods;
87
internal virtual void GenerateMethod(
TypeMapping
mapping){}
91
TypeMapping
mapping = referencedMethods[--references];
96
internal string ReferenceMapping(
TypeMapping
mapping) {
106
TypeMapping
[] EnsureArrayIndex(
TypeMapping
[] a, int index) {
107
if (a == null) return new
TypeMapping
[32];
109
TypeMapping
[] b = new
TypeMapping
[a.Length + 32];
System\Xml\Serialization\XmlSerializationILGen.cs (9)
30
TypeMapping
[] referencedMethods;
102
internal virtual void GenerateMethod(
TypeMapping
mapping) { }
106
TypeMapping
mapping = referencedMethods[--references];
111
internal string ReferenceMapping(
TypeMapping
mapping) {
119
TypeMapping
[] EnsureArrayIndex(
TypeMapping
[] a, int index) {
120
if (a == null) return new
TypeMapping
[32];
122
TypeMapping
[] b = new
TypeMapping
[a.Length + 32];
System\Xml\Serialization\XmlSerializationReader.cs (9)
2127
foreach (
TypeMapping
mapping in scope.TypeMappings) {
2135
foreach (
TypeMapping
mapping in scope.TypeMappings) {
2149
internal override void GenerateMethod(
TypeMapping
mapping) {
2253
foreach (
TypeMapping
mapping in scope.TypeMappings) {
2617
TypeMapping
mapping = element.Mapping;
2651
void WritePrimitive(
TypeMapping
mapping, string source) {
3607
TypeMapping
mapping = member.Mapping.Elements[0].Mapping;
4346
TypeMapping
mapping = element.Mapping;
4642
void WriteCreateMapping(
TypeMapping
mapping, string local) {
System\Xml\Serialization\XmlSerializationReaderILGen.cs (6)
194
foreach (
TypeMapping
mapping in scope.TypeMappings) {
202
internal override void GenerateMethod(
TypeMapping
mapping) {
644
TypeMapping
mapping = element.Mapping;
698
void WritePrimitive(
TypeMapping
mapping, string source) {
3151
TypeMapping
mapping = element.Mapping;
3483
void WriteCreateMapping(
TypeMapping
mapping, string local) {
System\Xml\Serialization\XmlSerializationWriter.cs (9)
1319
foreach (
TypeMapping
mapping in scope.TypeMappings) {
1329
foreach (
TypeMapping
mapping in scope.TypeMappings) {
1341
internal override void GenerateMethod(
TypeMapping
mapping) {
1379
foreach (
TypeMapping
typeMapping in scope.TypeMappings) {
1403
void WriteQualifiedNameElement(string name, string ns, object defaultValue, string source, bool nullable, bool IsSoap,
TypeMapping
mapping) {
1474
void WritePrimitive(string method, string name, string ns, object defaultValue, string source,
TypeMapping
mapping, bool writeXsiType, bool isElement, bool isNullable) {
1790
TypeMapping
mapping = element.Mapping;
3404
TypeMapping
mapping = scope.GetTypeMappingFromTypeDesc(typeDesc);
3428
void WriteMappingInfo(
TypeMapping
mapping, string typeVariable, Type type){
System\Xml\Serialization\XmlSerializationWriterILGen.cs (5)
35
foreach (
TypeMapping
mapping in scope.TypeMappings) {
44
internal override void GenerateMethod(
TypeMapping
mapping) {
84
void WriteQualifiedNameElement(string name, string ns, object defaultValue, SourceInfo source, bool nullable,
TypeMapping
mapping) {
175
void WritePrimitive(string method, string name, string ns, object defaultValue, SourceInfo source,
TypeMapping
mapping, bool writeXsiType, bool isElement, bool isNullable) {
502
TypeMapping
mapping = element.Mapping;
System\Xml\Serialization\XmlTypeMapping.cs (1)
22
internal
TypeMapping
Mapping {