[Mono-list] assembly loaded at runtime and object instance creation

Robert Jordan robertj at gmx.net
Fri May 28 05:48:30 EDT 2010


On 28.05.2010 11:36, LordPhoenix wrote:

> namespace test{
>
>      public class Plugin{

...

>          public Loader(){
>              Assembly ass = Assembly.LoadFrom("plugin.dll");
>              Console.WriteLine(ass.FullName);
>              System.Object obj = ass.CreateInstance("Plugin",false);

The class name is "test.Plugin". You forgot the namespace.

Robert



More information about the Mono-list mailing list