aspx_professional thread: Dynamic Namespaces...
----- Original Message -----
From: "Richard Smith" <Richard.Smith@c...>
>
> I'm building an application that needs to implement a pulgin
> system... subsequently i need to load namespaces dynamically...
> does anyone know how this can be done at all??
Hi,
you can do this sort of thing using reflection and the Activator class.
It's pretty neat.
> I was thinking along the lines of telling developers to create
> classes that were an extension of my namespace, like
>
> Athena.NET.Plugins.<plugin name>
>
> But how would i load these name spaces??
You'd use Activator.CreateInstance(). Check it out.
On a side issue, it might be neater and easier if you were to give them an
interface they had to implement, or a base class they had to use. If you
don't, things could get quite chaotic.
Hope this helps,
Geoff