473,404 Members | 2,187 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,404 software developers and data experts.

how to identify the namespace dependency

Hi,

I want to know that is there is a way to identify the Namespace
dependency for a particular types method. Like how to know
programittacly that SqlClient is in System.Data namespace?

Thanks in advance.

Nicks

Feb 20 '06 #1
3 1327
Let's see your problem :
1.if you want to know the namespace of a type ( for example
SqlConnection)
you can use :
SqlConntection conn=new SqlConnection();
MessageBox.Show(conn.GetType().FullName);

this's name includes namespace + className

2. if you want to extract namespce tree structure , it depends on your
projects refrences.

Best Regards,
A.Hadi

Feb 20 '06 #2
Dear Hadi,

Thanks for your reply.

I just want to use Help.showHelp, but I didn't know which import
statement to use.

So programitally, can I get the namespace?

Regards,
Amit Mahajan
AH****@gmail.com wrote:
Let's see your problem :
1.if you want to know the namespace of a type ( for example
SqlConnection)
you can use :
SqlConntection conn=new SqlConnection();
MessageBox.Show(conn.GetType().FullName);

this's name includes namespace + className

2. if you want to extract namespce tree structure , it depends on your
projects refrences.

Best Regards,
A.Hadi


Feb 20 '06 #3
Hi Amit
You can use :
1.MSDN Doucmentation
2.Object Browser ( if you use visual studio .net )
3. my sample code in prev post

Regards,
A.Hadi

Feb 24 '06 #4

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

Similar topics

4
by: Mike Barlow | last post by:
The database I'm currently working with is very old and some of the tables, SP, and views are not being used. I'm looking for a way to identify what items are no longer in uses, or what items are...
2
by: Tjerk Wolterink | last post by:
IU have the following xsl root element: <xsl:stylesheet version="1.0" xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"...
3
by: Kelmen Wong | last post by:
Greeting, Anyone know any tool to identify whether an assembly is in Debug or Release? I can use "Dependency Walker" from VS 6. How about VS .NET? Got anything tool like that?
4
by: Stephen Corey | last post by:
I've got 2 classes in 2 seperate header files, but within the same namespace. If I use a line like: // This code is inside Class2's header file Class1 *newitem = new Class1(param1, param2); ...
4
by: Stephen Cochran | last post by:
I'm getting the following error in my ASP.NET application: Namespace or type 'DirectoryServices' for the Imports 'System.DirectoryServices' cannot be found. I have added the...
3
by: DJTN | last post by:
I'm getting the following error when I try to compile my setup project in VS 2002. I have re-installed the .net framework 1.1 and it didnt solve the problem. WARNING: Unable to find dependency...
9
by: Brett Romero | last post by:
I have two projects in one solution - a library and executable. Each have a namespace such as: ROOT.myapp.Functional ROOT.myapp.UI However, each cannot reference the other. myapp.UI is...
14
by: Jon Rea | last post by:
I am currently cleaning up an application which was origainlly hashed together with speed of coding in mind and therefore contains quite a few "hacky" shortcuts. As part of this "revamping"...
2
by: Mosfet | last post by:
Hi, I am trying to solve an issue with a dependency between two classes as shown below : atlwince.h (declaration and definition is done in the .h) ----------
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
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...
0
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,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...

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.