From: Mr. X. on
How can I make plugin object in C# ?

Thanks :)
From: Arne Vajhøj on
On 12-05-2010 15:20, Mr. X. wrote:
> How can I make plugin object in C# ?

..NET has excellent possibilities for creating plugins. From
simple load of class and instantiation via reflection over
use og IoC framework like Spring.NET and a config file to
the huge add-in framework.

Arne
From: Mr. X. on
Give me an example, please.
Thanks :)

"Arne Vajhøj" <arne(a)vajhoej.dk> wrote in message
news:4beb07d2$0$280$14726298(a)news.sunsite.dk...
> On 12-05-2010 15:20, Mr. X. wrote:
>> How can I make plugin object in C# ?
>
> .NET has excellent possibilities for creating plugins. From
> simple load of class and instantiation via reflection over
> use og IoC framework like Spring.NET and a config file to
> the huge add-in framework.
>
> Arne

From: Arne Vajhøj on
On 12-05-2010 16:06, Mr. X. wrote:
> "Arne Vajhøj" <arne(a)vajhoej.dk> wrote in message
> news:4beb07d2$0$280$14726298(a)news.sunsite.dk...
>> On 12-05-2010 15:20, Mr. X. wrote:
>>> How can I make plugin object in C# ?
>>
>> .NET has excellent possibilities for creating plugins. From
>> simple load of class and instantiation via reflection over
>> use og IoC framework like Spring.NET and a config file to
>> the huge add-in framework.
> Give me an example, please.

IPlugin plugin =
(IPlugin)Assembly.Load(pluginassemblyname).CreateInstance(pluginclassname);
plugin.SomeMethod();

Arne


From: Mr. X. on
C# is on VS 2008.
I cannot compile this code.
Where is IPlugin.
I did : using PlugIn;
but it cannot be compiled.

"Arne Vajhøj" <arne(a)vajhoej.dk> wrote in message
news:4beb0bcc$0$274$14726298(a)news.sunsite.dk...
> On 12-05-2010 16:06, Mr. X. wrote:
>> "Arne Vajhøj" <arne(a)vajhoej.dk> wrote in message
>> news:4beb07d2$0$280$14726298(a)news.sunsite.dk...
>>> On 12-05-2010 15:20, Mr. X. wrote:
>>>> How can I make plugin object in C# ?
>>>
>>> .NET has excellent possibilities for creating plugins. From
>>> simple load of class and instantiation via reflection over
>>> use og IoC framework like Spring.NET and a config file to
>>> the huge add-in framework.
> > Give me an example, please.
>
> IPlugin plugin =
> (IPlugin)Assembly.Load(pluginassemblyname).CreateInstance(pluginclassname);
> plugin.SomeMethod();
>
> Arne
>
>
 |  Next  |  Last
Pages: 1 2
Prev: Exception in thread
Next: ThreadPool and WaitHandle