Every component is contained within a namespace. By default, the namespace is the name of your project. Users of your component assembly will add Imports (Visual Basic) or using (C#) statements for the namespaces containing components they want to access. Generally speaking, the structure of namespaces in your component assembly should reflect its internal organization. If your assembly contains a large number of components, it makes sense to group related components in separate namespaces.So, for example, I have a DataAccess class. It's namespace might be something like this:
namespace MyCompany.DataAccess.Customers
The second line that you have a question on (again, from the docs, or simply by hovering your mouse cursor over it <g>).[STAThread] Indicates that the COM threading model for an application is single- threaded apartment (STA).Notice that this is prior to your "static void Main(string[] args)" ... this is the entry-point into your application and is necessary so that the app has a starting point when running.
>namespace ConsoleApplication1 >{ > /// <summary> > /// Summary description for Class1. > /// </summary> > class Class1 > { > /// <summary> > /// The main entry point for the application. > /// </summary> > > >**** Same with this line. Compliles fine without this > [STAThread] > static void Main(string[] args) > { > // > // TODO: Add code to start application here > // > } > } >} >