IT Community - Software Programming, Web Development and Technical Support

How can I find out the name of the namespace which a program is currently executing?

This is a discussion on How can I find out the name of the namespace which a program is currently executing? within the C# Programming forums, part of the Software Development category; How can I find out the name of the namespace which a program is currently executing?...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C# Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-22-2007, 11:08 PM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Question How can I find out the name of the namespace which a program is currently executing?

How can I find out the name of the namespace which a program is currently executing?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-22-2007, 11:32 PM
oxygen oxygen is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 633
oxygen is on a distinguished road
Default Re: How can I find out the name of the namespace which a program is currently executi

Simply convert the form as type object and find the namespace

Type t0 = typeof(Form1);
MessageBox.Show(t0.Namespace);

or

Type t1 = this.GetType();
MessageBox.Show(t1.Namespace);
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
System Namespace kingmaker C# Programming 1 10-26-2007 05:24 AM
namespace - .NET Framework class hierarchy prasath ASP and ASP.NET Programming 1 08-18-2007 12:59 AM
How to launch Real Player program through my j2me midlet program? itbarota J2ME 1 07-25-2007 11:39 PM
when the program is executing,how to stop the program and open the cmd window... bluesky C# Programming 1 07-25-2007 05:51 AM
Executing SQL Server Stored Procedures With PHP - Executing stored procedures Jeyaseelansarc PHP Programming 1 07-19-2007 12:23 AM


All times are GMT -7. The time now is 09:54 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0