I am trying to create a new app domain to convert document, but I am not getting familiar to the syntax of it, this is what I am trying to convert a document,
Aspose.Words.Document doc = new Aspose.Words.Document(inputFileName);
doc.Save(Path.ChangeExtension(inputFileName, ".pdf"));
I want to run above code in new APP domain so I am trying this,
AppDomain domain = AppDomain.CreateDomain("New domain name");
string pathToDll = @"C:\Users\user1\Desktop\Aspose.Words.dll";
Type t = typeof(Aspose.Words.Document);
Aspose.Words.Document myObject = (Aspose.Words.Document)domain.CreateInstanceFromAndUnwrap(pathToDll, t.FullName);
But how can I create a constructor as I am doing in 1st code spinet...