Lecture overview -- Keyboard shortcut: 'u'  Previous page: Namespaces and Visibility -- Keyboard shortcut: 'p'  Next page: Patterns and Techniques [Section] -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home  Page 21 : 29
Object-oriented Programming in C#
Reference types, Value types, and Patterns
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