473,388 Members | 1,209 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Reading the current Namespace.Class, Assemble at runtime

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
1 1900
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jim dunn | last post by:
HI I am having problems with C# with regards to its compatibility with win32 API methods, I am trying to read from a windows CE comm port using C# and imported methods from coredll.dll, it seems...
1
by: Paul Fi | last post by:
I have this problem with .NET remoting: my remote class is called RemoteHandler which implements an interface called IEazyRemoting which has only one method to be implemented which is my server...
6
by: Robert Warnestam | last post by:
I've two class libraries, where one is referencing the other. The first library looks like this; (assembly name and root name space is set to Codab.Parser) namespace Codab.Parser { public class...
29
by: Natan | last post by:
When you create and aspx page, this is generated by default: using System; using System.Collections; using System.Collections.Specialized; using System.Configuration; using System.Text; using...
4
by: Kevin Newman | last post by:
The primary problem I've had with php is the lack of namespaces, which makes OOP very difficult to organize, since you end up with large number of classes cluttering up the same namespace - which...
3
by: markroworth | last post by:
Hi everyone, I'm relatively new to vb.net and am writing my errors object to collect errors as the call stack bounces back up to the GUI. When an error occurs, I would like to grab three things:...
4
by: Jim | last post by:
I have made a class which includes some of the methods in the class declaration, which is in the header; slice.h class Slice{ private: float cdelt1,cdelt2; float crval1,crval2; float...
8
by: Peter Bradley | last post by:
Hi, I wonder if anyone can help me out? I'm trying to implement an EPP (rfc4934 and rfc4930) client. So far I've managed to connect and authorise using an X509 Certificate. This should...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.