G#

cancel
Showing results for 
Search instead for 
Did you mean: 

Plug In classes with G#

Hello

I'm new with G# I find it is very useful and easy

Is it possible to create Plug in classes?

Because I always need the "Create Method"

Thanks

0 Kudos
Message 1 of 4
(5,270 Views)

Hi diego_fro

Not exactly sure what you mean by plugin classes.

We use a design pattern with the g# object create method that is called dependency injection.

It,s purpose is to create a more "loose" coupling in designs and with that we can do something we call a plugin structure for classes.

Pls have a look at the examples for g# regarding dependency injection and see if you find it useful, it's available in the g# examples in your normal examples folder

//Patrik

0 Kudos
Message 2 of 4
(4,371 Views)

Hi Patrik

thank you for the answer

the dependency injection is what I need !

best regards

Diego

0 Kudos
Message 3 of 4
(4,371 Views)

Nice, hope it will be usefull.

Please remember that classes using dependency injection is not "loaded" in an instance as you normally find it when developing. Its loaded in runtime....

//Patrik

0 Kudos
Message 4 of 4
(4,371 Views)