471,321 Members | 1,974 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,321 software developers and data experts.

C# reflection

I am working on an application in C#, it will load another managed
code library DLL in runtime, instead of write the following code:

Assembly asmb =
Assembly.LoadFrom("C:\\test\\AssemblyTest1\Assembl yTest1.dll");

object test = asmb.CreateInstance("AssemblyTest1.Test",
false, BindingFlags.CreateInstance, null, null,
CultureInfo.CurrentCulture, null);
....

I would like to write:

Assembly asmb =
Assembly.LoadFrom("C:\\test\\AssemblyTest1\Assembl yTest1.dll");

....

AssemblyTest1.Test test = new AssemblyTest1.Test();

How should I do this?

Thanks in advance

Dec 9 '05 #1
1 1208
I am afraid you I cannot do that.

Dec 9 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by A. Wiebenga | last post: by
3 posts views Thread by HL | last post: by
9 posts views Thread by Kuberan Naganathan | last post: by
17 posts views Thread by raylopez99 | last post: by
reply views Thread by Gustavo Arriola | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.