Esempio n. 1
0
        protected void LoadAssembly(string filename)
        {
            IAssemblyLoader assemblyLoader = new AssemblyLoader();
            assemblyLoader.AddPrivatePath(System.IO.Path.GetDirectoryName(filename));

            metadataModule = assemblyLoader.LoadModule(filename);

            UpdateTree();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            IAssemblyLoader assemblyLoader = new AssemblyLoader();
            assemblyLoader.AddPrivatePath(@"X:\MonoTest\bin\");

            assemblyLoader.LoadModule(@"X:\MonoTest\bin\Mosa.HelloWorld.exe");

            ITypeSystem typeSystem = new TypeSystem();
            typeSystem.LoadModules(assemblyLoader.Modules);

            return;
        }
Esempio n. 3
0
        protected void LoadAssembly(string filename)
        {
            IAssemblyLoader assemblyLoader = new AssemblyLoader();
            assemblyLoader.AddPrivatePath(System.IO.Path.GetDirectoryName(filename));

            assemblyLoader.LoadModule(filename);

            typeSystem = new TypeSystem();
            typeSystem.LoadModules(assemblyLoader.Modules);

            typeLayout = new TypeLayout(typeSystem, 4, 4);

            UpdateTree();
        }