Namespaces
Another noticeable change is the use of namespaces. Chapter 6, “Reflections,” provides thorough coverage of namespaces. For now, you can think of a namespace as a means of organizing classes.
As software becomes increasingly complex, we will need higher levels of abstraction to organize code. Types were defined to collect data. Procedures were defined to organize and manage lines of code. Classes were invented to organize procedures and data, and now we have namespaces to organize classes.
When you create a VB .NET project, a default namespace with the same name as your project is defined for you. In our vanilla Windows module example in Listing 2.1, I chose the default name. The project ended up with this name as the namespace; the ...
Get Visual Basic® .NET Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.