System.Xml.Serialization.SchemaImporter.SchemaImporter C# (CSharp) Method

SchemaImporter() private method

private SchemaImporter ( System.Xml.Serialization.XmlSchemas schemas, CodeGenerationOptions options, ImportContext context ) : System
schemas System.Xml.Serialization.XmlSchemas
options CodeGenerationOptions
context ImportContext
return System
        internal SchemaImporter(XmlSchemas schemas, CodeGenerationOptions options, ImportContext context)
        {
            if (!schemas.Contains(XmlSchema.Namespace))
            {
                schemas.AddReference(XmlSchemas.XsdSchema);
                schemas.SchemaSet.Add(XmlSchemas.XsdSchema);
            }
            if (!schemas.Contains(XmlReservedNs.NsXml))
            {
                schemas.AddReference(XmlSchemas.XmlSchema);
                schemas.SchemaSet.Add(XmlSchemas.XmlSchema);
            }
            _schemas = schemas;
            _options = options;
            _context = context;
            Schemas.SetCache(Context.Cache, Context.ShareTypes);
        }