473,654 Members | 3,068 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Getting Available Namespaces with Reflection

All,

Is it possible to get all of the current namespaces that are available
through reflection? What I am trying to do is get back all of the
namespaces, then classes within the namespaces, then methods/properties
within the classes. I need each one separated - like VS.NET's intellisense.

I'm trying to get all of this information from
System.Reflecti on.Assembly.Get ExecutingAssemb ly.GetReference dAssemblies.

Thanks for the help!

Dave Wurtz
Advanced Software Designs
Nov 20 '05 #1
1 1276
Dave Wurtz wrote:
All,

Is it possible to get all of the current namespaces that are available
through reflection? What I am trying to do is get back all of the
namespaces, then classes within the namespaces, then
methods/properties within the classes. I need each one separated -
like VS.NET's intellisense.

I'm trying to get all of this information from
System.Reflecti on.Assembly.Get ExecutingAssemb ly.GetReference dAssemblies.

Thanks for the help!

Dave Wurtz
Advanced Software Designs


IIRC, you'll need to get a list of the fully qualified class names, then
parse them to extract the namespaces, because the CLI doesn't even define
namespaces.

- Pete
Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1351
by: Lee Alexander | last post by:
I want to find out all the namespaces for an assembly and convert them into a tree that I can then traverse for use in an autocomplete popup. Now I figure I can do it by running over all the exported types of the assembly and getting the namespaces they are in but is there a better way??? Regards Lee
7
7269
by: Thomas Koch | last post by:
Hi - does anyone know if it is possible to document namespaces in C# using the XML documentation tags or something similar? Cheers Thomas Koch
2
2552
by: tshad | last post by:
If I create multiple .dll files with the same namespace, but different classes. Is this the same thing as creating one file with one Namespace and all the classes in that namespace? If so, is it better to create multiple files or just one big file? Also, what causes ASP to look at each .dll file in the Bin folder. Even when I make changes, they seem to get picked up. How does ASP know to load the new .dll or the same .dll again if...
4
1784
by: astro | last post by:
I would like to build some generic code that is able to figure out the correct dataAdapter to apply changes to given a form with several dataAdapters. Any suggestions on the following? Thank you. ====================================== Private Sub SaveChanges(ByVal aContainer As Object)
20
27765
by: Shawnk | last post by:
I would like to get the class INSTANCE name (not type name) of an 'object'. I can get the object (l_obj_ref.GetType()) and then get the (l_obj_typ.Name) for the class name. I there any way of getting 'l_Fred_my_ins' out of the following. .... My_cls l_Fred_my_ins = new My_cls();
1
2395
by: Jedufa | last post by:
following of thread: "Adding namespaces to code behind automatically" Hello, I had quite the same problem and got further in the right direction with your suggestions, thanks. Nevertheless, I have a newer problem which seems to come from the fact that the assembly which contains my "SimpleComponentToolboxItem" must be already referenced
1
1599
by: =?Utf-8?B?VmlrcmFt?= | last post by:
is there any object available in c#/asp.net which can give me event name in that eevnt only. Like if I am in Page_load event, i should get Page_Load or if I am in Button_click event I should get Button_Click. SO that I can logg it in my cutom log file with a generic logic. Thanks
3
9541
by: tshad | last post by:
I have a file that I converted from VB.Net to C# that works fine in VB.Net when I compile but not in C# using the same libraries. The error I am getting is: PageInit.cs(9,7): error CS0138: A using namespace directive can only be applied to namespaces; 'System.Web.HttpCookie' is a class not a namespace The code is:
1
1716
by: Greg99 | last post by:
Hello. I need to find the available space for a given path (could be a network path) with a quota applied, but when I use the following code, it gives me the available space on the entire drive. For instance, I have a drive E: that has 500 GB of available space. But I have user folders on this drive and each user has a 2 GB quota. For instance, when I use this function giving the path "E:\Users\Greg", it should return that 2 GB is free, but...
0
8372
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8285
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8814
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7304
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6160
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4293
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2709
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1915
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1592
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.