Reference types, Value types, and Patterns
- slide 21 : 29
Namespaces and Assemblies
Namespaces
The top-level construct in a compilation unit
May contain types (such as classes) and nested namespaces
Identically named members of different namespaces can co-exist
There is no coupling between classes/namespaces and source files/directories
Assemblies
A packaging construct produced by the compiler
Not a syntactic construct in C#
A collection of compiled types - together with resources on which the types depend
Versioning and security settings apply to assemblies
The
file/directory
organization, the
namespace/class
organization and the
assembly
organization are relatively independent of each other