System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping C# (CSharp) Method

ImportTypeMapping() private method

private ImportTypeMapping ( TypeModel model, string ns, ImportContext context, string dataType, XmlAttributes a, RecursionLimiter limiter ) : TypeMapping
model TypeModel
ns string
context ImportContext
dataType string
a XmlAttributes
limiter RecursionLimiter
return TypeMapping
        private TypeMapping ImportTypeMapping(TypeModel model, string ns, ImportContext context, string dataType, XmlAttributes a, RecursionLimiter limiter)
        {
            return ImportTypeMapping(model, ns, context, dataType, a, false, false, limiter);
        }

Same methods

XmlReflectionImporter::ImportTypeMapping ( TypeModel model, string ns, ImportContext context, string dataType, XmlAttributes a, bool repeats, bool openModel, RecursionLimiter limiter ) : TypeMapping
XmlReflectionImporter::ImportTypeMapping ( Type type ) : XmlTypeMapping
XmlReflectionImporter::ImportTypeMapping ( Type type, XmlRootAttribute root ) : XmlTypeMapping
XmlReflectionImporter::ImportTypeMapping ( Type type, XmlRootAttribute root, string defaultNamespace ) : XmlTypeMapping
XmlReflectionImporter::ImportTypeMapping ( Type type, string defaultNamespace ) : XmlTypeMapping

Usage Example

Example #1
0
 /// <include file='doc\XmlSerializer.uex' path='docs/doc[@for="XmlSerializer.XmlSerializer"]/*' />
 /// <devdoc>
 ///    <para>[To be supplied.]</para>
 /// </devdoc>
 public XmlSerializer(Type type, XmlAttributeOverrides overrides, Type[] extraTypes, XmlRootAttribute root, string defaultNamespace) {
     XmlReflectionImporter importer = new XmlReflectionImporter(overrides, defaultNamespace);
     for (int i = 0; i < extraTypes.Length; i++)
         importer.IncludeType(extraTypes[i]);
     tempAssembly = GenerateTempAssembly(importer.ImportTypeMapping(type, root));
     this.events.sender = this;
 }
All Usage Examples Of System.Xml.Serialization.XmlReflectionImporter::ImportTypeMapping