Академический Документы
Профессиональный Документы
Культура Документы
Session Objectives
Explain Namespaces Create custom Namespaces Discuss types of Namespace naming Create alias for Namespaces Use namespace directives Implement .net base classes libraries
Total.net / Programming in C# / Session 6 / 2 of 28
Namespaces
Used to avoid naming conflicts Elements designed to help you organize your code.
To use a class inside its namespace, we need to specify the class name. To use a class outside a namespace it has to be referred by using its fully qualified name.
With using namespaces long confusing names can be made short and meaningful.
Base Class Is a Library (1) that you can mass of huge pre-written code easily incorporate and use in your code.
Base Class Library is shared among all .net supported languages. Classes in the BCL are categorized into namespaces based on their functionality.
Synchronization of Threads
Example -