What is .NET language ?
.Net is not a language. .NET is a software framework which is designed and developed by Microsoft. Microsoft .Net Framework is a platform that provides tools and technologies you need to build Networked Applications as well as Distributed Web Services and Web Applications. The .Net Framework provides the necessary compile time and run-time foundation to build and run any language that conforms to the Common Language Specification (CLS).The main two components and languages of .Net Framework are Common Language Runtime (CLR) and .Net Framework Class Library (FCL).
Dot Net has a variety of languages in which coding can be done. The programs written in it can run at a comparatively high speed. It is language independent which makes it beneficial and flexible for the developers to develop programs in their own development language which can be further compiled to a common language for execution. Using developers which are adept in this arena can easily connect both new and existing personnel and business applications with software and services across platforms, applications and programming languages.
Microsoft .Net provides different programming languages such as C#, VB.NET Shop etc.. We can write program in any one of the languages.
The Common Language Runtime (CLR) is the runtime environment of the .Net Framework , that executes and manages all running code like a Virtual Machine The common language runtime (CLR) is the core runtime engine for executing applications in the .NET Framework. The CLR is fully protected from the outside environment and highly optimized within, taking advantage of the services that the CLR provides such as security, performance, deployment facilities, and memory management , including garbage collection.
The .Net Framework Class Library (FCL) is a huge collection of language-independent and type-safe reusable classes. The .Net Framework Class Libraries(FCL) are arranged into a logical grouping according to their functionality and usability is called Namespaces.
Why is .NET important?
NET is the killer product. It gives developers choice and power. It allows them to build applications, not write repetitive routines (more on this in a minute). It provides tools that allow software to interoperate across platforms and indeed encourages heterogeneous systems.
Where is .NET used?
. NET is a free, cross-platform, open source developer platform for building many different types of applications. With . NET, you can use multiple languages, editors, and libraries to build for web, mobile, desktop, games, and IoT.
Features of .NET
Microsoft .NET provides a framework that facilitates designing and developing applications that are portable, scalable, and robust, and that can be executed in a distributed environment. It presents a platform and device-independent computing model in a managed environment.
The Microsoft .NET framework provides a lot of features. Microsoft has designed the features of the .NET framework by using the technologies that are required by software developers to develop applications for modern as well as future business needs. The key features of .NET are:
1. Common Executive Environment:-
All .NET applications run under a common execution environment, called the Common Language Runtime. The CLR facilitates the interoperability between different .NET languages such as C#, Visual Basic, Visual C++, etc. by providing a common environment for the execution of code written in any of these languages.
2. Common Type System:-
The .NET framework follows types of systems to maintain data integrity across the code written in different .NET compliant programming languages. CTS ensures that objects of the programs that are written in different programming languages can communicate with each other to share data.
CTS prevents data loss when a type in one language transfers data to its equivalent type in one language transfer data to its equivalent type in other languages. For example, CTS ensures that data is not lost while transferring an integer variable of visual basic code to an integer variable of C# code.
The common type system CTS defines a set of types and rules that are common to all languages targeted at the CLR. It supports both value and reference types. Value types are created in the stack and include all primitive types, structs, and enums. In contrast, reference types are created in the managed heap and include objects, arrays, collections, etc.
3. Multi-language support:-
.NET provides multi-language support by managing the compilers that are used to convert the source to intermediate language (IL) and from IL to native code, and it enforces program safety and security.
The basis for multiple language support is the common type system and metadata. The basic data types used by the CLR are common to all languages. There are therefore no conversion issues with the basic integer, floating-point and string types.
All languages deal with all data types in the same way. There is also a mechanism for defining and managing new types.
4. tool Support:-
The CLR works hand-in-hand with tools like visual studio, compilers, debuggers, and profilers to make the developer’s job much simpler.
5. Security:-
The CLR manages system security through user and code identity coupled with permission checks. The identity of the code can be known and permission for the use of resources granted accordingly. This type of security is a major feature of .NET. The .NET framework also provides support for role-based security using windows NT accounts and groups.
6. Automatic Resource Management:-
The .NET CLR provides efficient and automatic resource management such as memory, screen space, network connections, database, etc. CLR invokes various built-in functions of .NET framework to allocate and de-allocate the memory of .NET objects.
Therefore, programmers need not write the code to explicitly allocate and de-allocate memory to the program.
7. Easy and rich debugging support:-
The .NET IDE (integrated development environment) provides an easy and rich debugging support. Once an exception occurs at run time, the program stops and the IDE marks the line which contains the error along with the details of that error and possible solutions. The runtime also provides built-in stack walking facilities making it much easier to locate bugs and error.
8. Simplified development:-
With .NET installing or uninstalling, a window-based application is a matter of copying or deleting files. This possible because .NET components are not referenced in the registry.
9. Framework class library:-
The framework class library (FCL) of the .NET framework contains a rich collection of classes that are available for developers to use these classes in code Microsoft has developed these classes to fulfill various tasks of applications, such as working with files and other data storages, performing input-output operations, web services, data access, and drawing graphics.
The classes in the FCL are logically grouped under various namespaces such as system, System.collections, system.diagnostics, system.Globalization, system.IO, system.text etc.
10. Portability:-
The application developed in the .NET environment is portable. When the source code of a program written in a CLR compliant language complies, it generates a machine-independent and intermediate code. This was originally called the Microsoft Intermediate Language (MSIL) and has now been renamed as the common Intermediate Language (CIL). CIL is the key to portability in .NET.
Advantages and Disadvantages of .NET
I hope, this is help full !!
- Best AI tools for Software Engineers - November 4, 2024
- Installing Jupyter: Get up and running on your computer - November 2, 2024
- An Introduction of SymOps by SymOps.com - October 30, 2024
Great Content about dotnet language. Thanks for sharing