SlideShare a Scribd company logo
Namespaces
       Programming in C#




          tnngo2@gmail.com
Namespaces
Namespaces

     used to group classes logically and prevent name clashes
     between classes with identical names.

     https://gist.github.com/2403402
System-defined Namespaces
Using namespaces
Custom namespaces (User-defined namespaces)

      if a namespace is not declared, a default namespace is created in
      every file by the compiler
Access Modifiers for Namespaces

      always public


      cannot apply access modifiers
Unqualified Naming

      https://gist.github.com/2404341
Qualified Naming
Nested Namespace
Namespace Aliases

      https://gist.github.com/2404626

More Related Content

Viewers also liked (16)

PDF
Drip fund
Tom Currier
 
PDF
Comicus&co
Carmichael Billingsley
 
PDF
iDentity: Negotiating constructions of self in the digital space
ashetler
 
PPTX
LT データ可視化とd3.js js_cafe_20130908_otanet
博三 太田
 
PPTX
20087067 choi mun jung final homework.
문정 최
 
PDF
www.tex4future.net: el sector tèxtil 2.0 - Iuris.doc
tex4future
 
PDF
Skin cancer exposed - Background information
Xplore Health
 
PDF
Kudavi happy valentines day
Tom Currier
 
PPTX
Q4 12
Les Davy
 
PPT
Periodic Table Project 2012
jmori1
 
PDF
Investigate the vaccine for malaria
Xplore Health
 
PDF
Z0955523DISS
Mohit Bhavsar
 
PPSX
European day of solidarity between generations
balada65
 
PPT
Multimedia04
Les Davy
 
PPT
Nibiru: Building your own NoSQL store
Edward Capriolo
 
Drip fund
Tom Currier
 
iDentity: Negotiating constructions of self in the digital space
ashetler
 
LT データ可視化とd3.js js_cafe_20130908_otanet
博三 太田
 
20087067 choi mun jung final homework.
문정 최
 
www.tex4future.net: el sector tèxtil 2.0 - Iuris.doc
tex4future
 
Skin cancer exposed - Background information
Xplore Health
 
Kudavi happy valentines day
Tom Currier
 
Q4 12
Les Davy
 
Periodic Table Project 2012
jmori1
 
Investigate the vaccine for malaria
Xplore Health
 
Z0955523DISS
Mohit Bhavsar
 
European day of solidarity between generations
balada65
 
Multimedia04
Les Davy
 
Nibiru: Building your own NoSQL store
Edward Capriolo
 

More from Tuan Ngo (20)

PDF
Introduction of cg program for portal 20120424 en
Tuan Ngo
 
PDF
Net framework
Tuan Ngo
 
PDF
15 anonymous methods, partial types and nullable types
Tuan Ngo
 
PDF
14 generics and iterators
Tuan Ngo
 
PDF
13 collections
Tuan Ngo
 
PDF
11 exception handling
Tuan Ngo
 
PDF
12 events and delegates
Tuan Ngo
 
PDF
9 properties & indexers
Tuan Ngo
 
PDF
8 abstract classes and interfaces
Tuan Ngo
 
PDF
7 inheritance and polymorphism
Tuan Ngo
 
PDF
5 arrays
Tuan Ngo
 
PDF
6 class and methods
Tuan Ngo
 
PDF
3 statements and operators
Tuan Ngo
 
PDF
4 c# programming constructs
Tuan Ngo
 
PDF
1 get started with c#
Tuan Ngo
 
PDF
2 variables and data types
Tuan Ngo
 
PDF
Jdbc 7
Tuan Ngo
 
PDF
Jdbc 6
Tuan Ngo
 
PDF
Jdbc 3
Tuan Ngo
 
PDF
Jdbc 2
Tuan Ngo
 
Introduction of cg program for portal 20120424 en
Tuan Ngo
 
Net framework
Tuan Ngo
 
15 anonymous methods, partial types and nullable types
Tuan Ngo
 
14 generics and iterators
Tuan Ngo
 
13 collections
Tuan Ngo
 
11 exception handling
Tuan Ngo
 
12 events and delegates
Tuan Ngo
 
9 properties & indexers
Tuan Ngo
 
8 abstract classes and interfaces
Tuan Ngo
 
7 inheritance and polymorphism
Tuan Ngo
 
5 arrays
Tuan Ngo
 
6 class and methods
Tuan Ngo
 
3 statements and operators
Tuan Ngo
 
4 c# programming constructs
Tuan Ngo
 
1 get started with c#
Tuan Ngo
 
2 variables and data types
Tuan Ngo
 
Jdbc 7
Tuan Ngo
 
Jdbc 6
Tuan Ngo
 
Jdbc 3
Tuan Ngo
 
Jdbc 2
Tuan Ngo
 
Ad

Recently uploaded (20)

PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
PDF
July Patch Tuesday
Ivanti
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
July Patch Tuesday
Ivanti
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
Ad

10 namespace