By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,417 Members | 904 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,417 IT Pros & Developers. It's quick & easy.

Reading the current Namespace.Class, Assemble at runtime

P: n/a
Reading the current Namespace.Class, Assemble at runtime
I am trying to get the Assemble, Namespace and Class name of a form at
runtime. I have several assembles and namespaces in my app, I need to
determine what namespace.class, assemble I am currently processing.

Thanks
Mike Walters
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Look at the System.Reflection namespace.
The method Assembly.GetExecutingAssembly will give you a reference to the
current assembly that your code is running in - an instance of the Assembly
class. Then you can call GetName on it to retrieve the name of the assembly.
There are other classes such as Module, AssemblyName, etc in the
System.Reflection namespace. These should help you get going in the right
direction.
Also look at the methods of the 'Type' class.
sorry - I don't have any examples right now but you should find some in the
MSDN help files.

hope this helps..
Imran.

"Mike Walters" <Mi**@walterscentral.com> wrote in message
news:1e**************************@posting.google.c om...
Reading the current Namespace.Class, Assemble at runtime
I am trying to get the Assemble, Namespace and Class name of a form at
runtime. I have several assembles and namespaces in my app, I need to
determine what namespace.class, assemble I am currently processing.

Thanks
Mike Walters

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.