Namespaces—The First Contact

Namespaces are a fundamental concept of C# and .NET. In this section, we take our first look at namespaces and Mono in general.

Fundamentals

Namespaces can be compared with packages. Some of you already know this concept from languages such as Sun's Java. However, there are some fundamental differences that must be discussed: Namespaces are a logical structure—not every namespace has to be in a separate file. The physical organization of files has nothing to do with logical structures. The advantage is that it's no problem to use modules from different vendors without worrying about conflicts between those modules. If namespaces are used properly, conflicts are very unlikely.

To make it short: Namespaces help us to ...

Get Mono Kick Start 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.