how to add a dll dynamically to c# program or an application/

Posted by Rajendra.prasad under C# on 6/9/2010 | Views : 2039 | Status : [Member] | Replies : 3
Hi All,

how to add a dll dynamically to c# program or an application

Regards,
Rajendra




Responses

Posted by: Shivanichhabra4u on: 6/9/2010 [Member] Starter

Up
0
Down
I think by using System.Reflection u can do

Rajendra.prasad, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Muhilan on: 6/10/2010 [Member] Starter

Up
0
Down

Object ob=Assembly.Load("ClassLibrary").CreateInstance("ClassLibrary.Class1");


ClassLibrary is your assembly name , ClassLibrary.Class1 is your class name under assembly.


Rajendra.prasad, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Muhilan on: 6/10/2010 [Member] Starter

Up
0
Down
import System.Reflection; namespace also

Rajendra.prasad, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response