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

TempAssembly() private method

private TempAssembly ( XmlMapping xmlMappings, Type types, string defaultNamespace, string location, Evidence evidence ) : System.Reflection
xmlMappings XmlMapping
types System.Type
defaultNamespace string
location string
evidence Evidence
return System.Reflection
        internal TempAssembly(XmlMapping[] xmlMappings, Type[] types, string defaultNamespace, string location, Evidence evidence) {
            CompilerParameters parameters = new CompilerParameters();
            parameters.GenerateInMemory = true;
            TempFileCollection tempFiles = new TempFileCollection(location);
            parameters.TempFiles = tempFiles;
            assembly = GenerateAssembly(xmlMappings, types, defaultNamespace, evidence, parameters, null, assemblies);
#if DEBUG
            // use exception in the place of Debug.Assert to avoid throwing asserts from a server process such as aspnet_ewp.exe
            if (assembly == null) throw new InvalidOperationException(Res.GetString(Res.XmlInternalErrorDetails, "Failed to generate XmlSerializer assembly, but did not throw"));
#endif      
            InitAssemblyMethods(xmlMappings);
        }

Same methods

TempAssembly::TempAssembly ( ) : System.Reflection
TempAssembly::TempAssembly ( XmlMapping xmlMappings, Assembly assembly, XmlSerializerImplementation contract ) : System.Reflection
TempAssembly::TempAssembly ( XmlSerializerImplementation contract ) : System.Reflection