Kürşat <(E-Mail Removed)> wrote:
> I want to set a plug-in architecture and need object creation at run-time.. I
> can create objects at run-time using Activator.CreateObject method, so far
> so good. But some objects have constructors other than default one and I
> should pass required parameters to use them. Is it possible to instantiate
> objects at run-time using non-default construcotors?
Activator.CreateInstance has overloads allowing you to specify the
arguments to pass.
--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet Blog:
http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too