-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: laks_win
Message 3 in Discussion


Ya, it really possible. It is name as 
"nested namespaces".
 
1]. In Vs.net IDE, when u creat a "aspx" file 
within an inner folde, it will automatically put the namespace with the 
initial namespace [Ex:intialnamespace] given by us 
and with the  "folder" name. [Ex: namespace 
intialnamespace.folder ]
 
2]. But U can also nest them as u wish in your 
code, not by creating a new folder and putting the namespace as shown 
below.
 
3]. Carefully placing the methods and accessing 
them, u can play greatly.
 
4]. Refer the article too : 
http://www.c-sharpcorner.com/Language/WorkingWithNamespacesGAG.asp
[code]
// cs_namespace_keyword.cs
using 
System;
namespace SomeNameSpace
{
   public class MyClass 

   {
      public static void Main() 

      
{
         
Nested.NestedNameSpaceClass.SayHello();
      
}
   }
 
   namespace Nested   // a 
nested namespace
   {
      public 
class NestedNameSpaceClass 
      
{
         public static void 
SayHello() 
         
{
            
Console.WriteLine("Hello");
         
}
      }
   
}
}
[/code]
 
Regards
 
Lakshmi Narayanan.R

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to