.Net Framework is a software advancement stage created by Microsoft for building and running Windows applications. The .Net system comprises of developer tools, programming languages, and libraries to assemble desktop and web applications. It is additionally used to construct websites, web administrations, and games.
The .Net system was intended to make applications, which would run on the Windows Platform. The first form of the .Net framework was delivered in the year 2002. The variant was called .Net framework 1.0. The Microsoft .Net framework has made considerable progress from that point forward, and the current variant is .Net Framework 4.7.2.
The Microsoft .Net framework can be utilized to make both – Form-based and Web-based applications. Web administrations can likewise be created utilizing the .Net framework.
The system additionally upholds different programming languages like Visual Basic and C#. So, engineers can pick and choose the language to build up the necessary application. In this section, you will get familiar for certain fundamentals of the .Net framework.
.Net Framework Architecture.
.Net Framework Architecture is a programming model for the .Net platform that furnishes an execution climate and incorporation with different programming languages for basic turn of events and organization of different Windows and work area applications. It comprises of class libraries and reusable parts.
>Net Components:
The architecture of .Net framework is based on the following key components.
- Common Language Runtime: The “common Language Infrastructure” or CLI is a stage in .Net engineering on which the .Net programs are executed.
The CLI has the following key features:
Exception Handling: Exceptions are errors which happen when the application is executed. Instances of exceptions are:
. On the off chance that an application attempts to open a document on the neighbourhood machine, however the record is absent.
. On the off chance that the application attempts to bring a few records from a database, however the association with the database isn’t legitimate.
- Garbage Collection: Garbage collection is the process of eliminating undesirable resources when they are no longer required. Instances of garbage collection are:
. A File handle which is not, at this point required. In the event that the application has completed all operations on a document, the record handle may at this point don’t be needed.
. The database association is not, at this point required. In the event that the application has completed all procedure on a database, the database association may at this point don’t be needed.
>Working with various Programming Language.
As verified in a previous segment, a developer can build up an application in an assortment of .Net programming languages.
- Language: The principal level is simply the programming language; the most widely recognized ones are VB.Net and C#.
- Compiler: here is a compiler which will be independent for each programming language. So fundamental the VB.Net language, there will be a different VB.Net compiler. Also, for C#, you will have another compiler.
- Common Language Interpreter: This is the last layer in .Net which would be utilized to run a .net program created in any programming language. So, the ensuing compiler will send the program to the CLI layer to run the .Net application.
2. Class Library: The .NET Framework incorporates a bunch of standard class libraries. A class library is an assortment of techniques and capacities that can be utilized for the center reason.
For instance, there is a class library with techniques to deal with all file level activities. So, there is a strategy which can be utilized to peruse the content from a document. Likewise, there is a strategy to compose text to a file.
A large portion of the techniques are part into either the System.* or Microsoft.* namespaces. (The bullet * simply implies a reference to the entirety of the techniques that fall under the System or Microsoft namespace)
A namespace is a sensible division of techniques. We will become familiar with these namespaces more in detail in the resulting parts.
3. Languages: The sorts of applications that can be inherent the .Net structure is characterized comprehensively into the accompanying classifications.
. Winforms: this is utilized for creating Forms-based applications, which would run on an end user machine. Notepad is an illustration of a customer-based application.
. ASP.Net: This is utilized for creating online applications, which are made to run on any program like Internet Explorer, Chrome or Firefox.
. The Web application would be prepared on a server, which would have Internet Information Services Installed.
. Web Information Services or IIS is a Microsoft part which is utilized to execute an Asp.Net application.
. The aftereffect of the execution is then shipped off the customer machines, and the yield is appeared in the program.
. ADO.Net: This innovation is utilized to create applications to cooperate with Databases like Oracle or Microsoft SQL Server.
Microsoft consistently guarantees that .Net frameworks are in consistence with every one of the upheld Windows operating frameworks.
.Net Framework Design Principle.
The accompanying plan standards of the .Net structure is the thing that makes it pertinent to make .Net based applications.
- Interoperability: The .Net framework gives a great deal of in reverse help. Assume in the event that you had an application based on a more seasoned adaptation of the .Net structure, say 2.0. What’s more, in the event that you attempted to run a similar application on a machine which had the higher rendition of the .Net structure, say 3.5. The application would in any case work. This is on the grounds that with each release, Microsoft guarantees that more established system renditions gel well with the most recent version.
- Portability: Applications based on the .Net structure can be made to work at any Windows platform. What’s more, presently lately, Microsoft is likewise imagining to make Microsoft products work on different platforms, like iOS and Linux.
- Security: The .NET Framework has a decent security mechanism. The inbuilt security component helps in both approval and confirmation of applications. Each application can unequivocally characterize their security mechanism. Every security component is utilized to concede the client admittance to the code or to the running program.
- Memory Management: The Common Language runtime accomplishes basically everything or memory the board. The .Net system has all the capacity to see those assets, which are not utilized by a running program. It would then release those assets as needs be. This is done by means of a program called the “Garbage Collector” which runs as a component of the .Net framework. The garbage collector runs at normal intervals and continues checking which framework assets are not used and liberates them as needs be.
- Simplified deployment: The .Net framework additionally have instruments, which can be utilized to bundle applications based on the .Net framework. These bundles would then be able to be appropriated to customer machines. The bundles would then naturally install the application.
Summary:
. Net is a programming language created by Microsoft. It was intended to construct applications which could run on the Windows platform.
. The .Net programming language can be utilized to create Forms based applications, Web based applications, and Web services.
. Developers can browse an assortment of programming languages accessible on the Microsoft .Net system platform. The most widely recognized ones are VB.Net and C#.