How to dynamically load assembly in c#

Posted by Gurumatrix2004 under C# on 8/4/2014 | Points: 10 | Views : 1059 | Status : [Member] | Replies : 2
Hey friends,

I would like to know to dynamically load an assembly in c-sharp

Gurunatha Dogi


Responses

Posted by: kgovindarao523-21772 on: 8/4/2014 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Hi,

Please explore using this hint.

var kernel = new StandardKernel();
kernel.Load( "MyLibrary.dll" );


or specify attribute on top of class
[DllImport( "Mpr.dll" )]



Thank you,
Govind

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

Posted by: Sheonarayan on: 8/4/2014 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
Here is one more way http://www.dotnetfunda.com/interviews/show/123/how-to-load-assembly-from-gac.

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

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

Login to post response