Thursday, February 7, 2013

Services Provided by .NET framework


There are number of services provided with .NET framework to improve the convenience of the developers and to make the framework more stable and secure. 

Following are some of the services that brings with .Net framework 

Interoperability: 
.NET interoperability feature provides access to functionality that is implemented in programs which is out side of the .NET environment. Access to COM components is provided in the System.Runtime.InteropServices and System.EnterpriseServices namespaces of the framework; access to other functionality is provided using the P/Invoke feature. 

.NET interoperability comes in three types 

· Interoperability of .NET code with COM components 
· Interoperability of COM components with .NET 
· Interoperability of .NET code with Win32 DLLs 

Behavior of the .NET framework object model is different from the behavior of the Component object model (COM). As an example clients of the .NET components doesn’t have to worry about the life time of an object CLR manages things for them in contrast clients of the COM object must take care of the life time of objects. 

Common Runtime Engine: 
All .NET programs execute under the supervision of the CLR, guaranteeing certain properties and behaviors in the areas of memory management, security, and exception handling. Developers may Wright code using the languages such as C# or VB.NET at runtime .NET compiler converts such code in to CIL code CLR’s JIT compiler converts CIL code in to native machine code. 

Language Independence: 
.NET framework introduces a Common Type System that defines all possible data types and programming constructs supported by the CLR and how they may or may not interact with each other conforming to the Common Language Infrastructure (CLI) specification. Because of this feature, the .NET Framework supports the exchange of types and object instances between libraries and applications written using any conforming .NET language. 

Security: 
Provides security in terms of several mechanisms 
ASP.NET Web Application Security – limit access to the sites by comparing authenticated credentials to Microsoft Windows NT file system permissions. 
Code access security - uses permissions to help limit the access that code has to protected resources and operations 
Role-based security - provides information needed to make decisions about what a user is allowed to do. 

Memory management: 
The .NET Framework CLR frees the developer from the burden of managing memory (allocating and freeing up when done); instead it does the memory management itself. To this end, the memory allocated to instantiations of .NET types (objects) is done contiguously from the managed heap, a pool of memory managed by the CLR. As long as there exists a reference to an object, which might be either a direct reference to an object or via a graph of objects, the object is considered to be in use by the CLR. 

Data Access: 
.NET framework introduced many new technologies, including a new relational data access model including ADO.NET technology. It consists of two components Data Provider and Dataset. The Data Provider defines a set of interfaces for data access and also provides and resolves data to and from a DataSet. DataSet represents relational data in-memory from any data source and provides good integration with XML and XSD. The data source can be either an RDBMS or an XML file.

No comments:
Write comments
Recommended Posts × +