Esempio n. 1
0
File: a.cs Progetto: mono/gert
		static int Main (string [] args)
		{
			Assembly assemblyB = Assembly.LoadFrom ("b.dll");
			if (assemblyB.FullName == null)
				return 1;
			b.SomeClass some = new b.SomeClass ();
			if (some.GetType ().FullName == null)
				return 2;
			return 0;
		}
Esempio n. 2
0
File: a.cs Progetto: mono/gert
		public static void Main (string [] args)
		{
			Console.WriteLine ("Loading assembly \"b\" ...");
			Assembly.LoadFrom ("b.dll");
			Console.WriteLine ("Assembly \"b\" loaded ok.");

			Console.WriteLine ("Initializing type in assembly \"b\" ...");
			b.SomeClass some = new b.SomeClass ();
			Console.WriteLine ("Type initialized ok.");

			Console.WriteLine ("Invoking method which uses assembly \"c\" ...");
			some.Test ();
			Console.WriteLine ("Method invoke ok.");
		}