CHAPTER 1 THE PHILOSOPHY OF .NET
mscorlib.dll assembly contains many different namespaces (such as System.IO), each with its own
semantically related types (e.g., BinaryReader).
Figure 1-5. A single assembly can have any number of namespaces
The key difference between this approach and a language-specific library is that any language
targeting the .NET runtime makes use of the same namespaces and same types. For example, the
following three programs all illustrate the ubiquitous “Hello World” application, written in C#, VB, and
C++/CLI:
// Hello world in C#.
using System;
public class MyApp
{
static void Main()
{
Console.WriteLine("Hi from C#");
}
}
' Hello world in VB.
Imports System
23