Creates a namespace with a single class : Namespace : Language Basics C# Examples


C# Examples » Language Basics » Namespace »

 

Creates a namespace with a single class









    
using  System;

namespace  StringSwitch
{
    class  MySwitch  
    {
    }
}

////////////////////////////////////////////

using  System;
using  StringSwitch;

class  MainClass
{

    public  static  void  Main()  
    {
        string  localString;
        MySwitch  s  =  new  MySwitch();
    }

}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Language Basics
» Namespace