Understanding the organization of the .net framework

After understanding about the compilation model followed by .net applications and the assemblies let’s try to understand the organization of the .net framework. In one of the previous tutorials you learnt that everything in the .net framework is a class and we said that it won’t be wrong to call the .net framework as a collection of many different classes written by Microsoft. In this tutorial we will try to understand the organization of the .net framework. We will learn how thousands of classes are organized to form the .net framework.

Encapsulation, encapsulation and encapsulation

Encapsulation is the lifeline of everything which is done in the object oriented world. Principally it says that we need to group similar things together. The following very simple rule is followed to organize everything inside the .net framework

.net framework -> Assemblies -> namespaces -> classes -> Properties and functions

The complete .net framework is a collection of many assemblies. To satisfy the rule of encapsulation Microsoft has organized different classes into different assemblies. For example there is a different assembly with classes related to database programming and there is a different assembly with classes related to web programming.

Organization of the .net framework

Inside every assembly there are classes logically organized into namespaces. So an assembly has many namespace inside and there are classes inside those namespaces. Inside the class there are properties and functions.
Therefore when you wish you use any classes created inside the .net framework you have to first know the assembly in which that class is present and then the namespace in which that class can be found. Once you know these two things all you have to do is create the object of the class and use its properties and functions.   

Quick Links

E-Magazines

@

Total Followers
Study Group Created
Study Group Joined
Following Teacher
Following Organization
Blog Articles Added
Questions Asked
Questions Answered
Jobs Posted
Total Members in Group
Questions asked by members
Tasks added in this Group

Please wait..

Ok

Login to Open ESchool OR Create your account    Login   SignUp