From: Daniel C. \(kzu\) <dca...@us...> - 2004-10-10 15:31:10
|
Update of /cvsroot/mvp-xml/Design/v1/src/CustomTools/SGen In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10882/v1/src/CustomTools/SGen Added Files: SGenRunner.cs Log Message: MBR object that genertes the code in a separate AppDomain to avoid project output locking. --- NEW FILE: SGenRunner.cs --- using System; using System.IO; namespace Mvp.Xml.Design.CustomTools.SGen { /// <summary> /// Class that performs the actual code generation in the isolated design domain. /// </summary> internal class SGenRunner : MarshalByRefObject { /// <summary> /// Generates the code for the received type. /// </summary> public SGenRunner(string outputFile, string forType, string targetNamespace) { using (StreamWriter writer = new StreamWriter(outputFile)) { writer.Write(XmlSerializerGenerator.GenerateCode( Type.GetType(forType), targetNamespace)); } } } } |