Drey.Nut.StartupProxy.Build C# (CSharp) Method

Build() public method

Creates an IShell instance within a child app domain, given the library's full path and class name.
public Build ( string pathAndFile, string typeName ) : IShell
pathAndFile string The path and file.
typeName string Name of the type.
return IShell
        public IShell Build(string pathAndFile, string typeName, params object[] args)
        {
            var assembly = Assembly.LoadFrom(pathAndFile);
            var type = assembly.GetType(typeName);
            return (IShell)Activator.CreateInstance(type, args);
        }
    }