C# Understanding (.net Framework)

Posted by admin on Oct 02, 2009

To be able to understand more about the languages C # and can utilize more leverage, so before we start talking about what it was in C #, it’s good we learn in advance about Microsoft. NET Framework which is a component which can not be separated from the language of C # itself.

1.1 What is .NET Framework?

.NET Framework is an integrated component of Windows that are made with a view to supporting the development of various types of applications and to be able running on variety of next generation applications including XML Web services application development.

.NET Framework is designed to meet some of the following purposes:

* To provide a consistent working environment for object-oriented programming language (object-oriented programming – OOP) either the object code is stored and executed locally, or executed locally but distributed through the Internet or executed remotely.

* To provide a working environment in which code execution can minimize software deployment process and avoid conflicts use the software version that is made.

* To provide a safe working environment in terms of executing code, including code created by third parties (third party).

* In order to provide a working environment which can reduce the problem at issue or the performance of the code from his interpreter environment.

* Making developers more easily develop a variety of more varied types of applications, such as windows based applications and web-based applications.

* To build all communication on industry standards to ensure that all code-based applications .NET Framework can integrate with a variety of other application code.

As one means to meet the goals above, hence made a variety of programming languages that can be used and can walk on the platform .NET Framework languages such as C #, VB.NET, J #, Perl.NET and others. Each language has its pros and cons of each, but it is certain, regardless of programming language used, it will be able to communicate with each other and mutually compatible with assistance. NET Framework.

1.2 Architecture. NET Framework

.NET Framework consists of two main components, namely the Common Language Runtime (CLR) and. NET Framework Class Library or sometimes also called the Base Class Library (BCL).
Common Language Runtime (CLR) is the main foundation. NET Framework. CLR is the component that is responsible for various aspects such as responsible for memory management, code execution, verify the security code, determines access rights of the code, compiling code, and various other system services. Given this CLR function, then based applications. NET is often called by managed code, while the application outside of it commonly called the un-managed code.

Here are some things that CLR is provided for the developers:

* Subject to further simplifying the application development process.

* Allows the variation and integration of various programming languages that exist in the neighborhood. NET Framework

* Security by doing identify the application code.

* Nature Assembly during the process of deployment / compilation

* Conduct versioning a component that can be recycled.

* Allows the reuse of code, given the nature of inheritance.

* Make arrangements / management of the lifetime of an object.

* Conduct analyzing objects automatically.

CLR will compile our application code into assembly language MSIL (Microsoft Intermediate Language). The compilation process itself is performed by components called Just In Time (JIT). JIT will compile only the methods that are used in applications, and the results of this compilation alone in cache on the machine and will be compiled again if there is a change in our application code.

. NET Framework Class Library or often also called the Base Case Library (BCL) is a collection of reusable types that are embedded with highly integrated CLR. Nature-oriented class library of objects that will provide the types of functions managed code. This not only affects the ease in terms of use, but also can reduce the time required at the time of execution. With these properties, the third-party components can easily be applied to the application.

BCL Given this, then we can use. NET Framework to create a variety of applications, such as:

* Console application

* Windowd based application (Windows Forms)

* ASP.NET application (web based)

* Applications XML Web Services

* Windows-based Applications Services

If we create a set of classes to create Windows-based applications, the Class-Class that we can use for other types of applications, such as web-based applications (ASP.NET).

1.3 Benefits. NET Framework

Here are some of the advantages of. NET Framework

Easy
Ease of here more in the direction of convenience for developers to create applications that run on the environment. NET Framework. Some things that bother the developer at the time of making application, has been removed or taken over by his ability. NET Framework, such as an object lifetime problems that usually escape the attention of developers during the application process. This issue has been handled and managed automatically by the Framework. NET through a component called the Garbage Collector is responsible for finding and removing unused objects that are automatically.

Efficient
Ease during the process of making application, will have implications on the efficiency of a process of productivity, both efficient in terms of time of application or also efficient in other ways, such as cost (cost).

Consistent
Easiness during the application process, could also have implications on the consistency in the application that we created. For example, with the BCL, we can use the object or class which is made for windows based applications on a web-based applications. With the existence of codes that can be integrated into various applications, then the consistency of our application code can be maintained.

Productivity
All the convenience-ease of the above, will ultimately create a better productivity. Productivity rises, especially the productivity of the developer, will have an impact on increasing the productivity of a company.