NET Framework
NET Framework
NET Framework
C#
Introduction to .NET Framework
• The .NET Framework is a software development framework
developed by Microsoft
• It provides a runtime environment and a set of libraries and tools for
building and running applications on Windows operating systems.
• The framework includes a variety of programming languages, such as
C#, F#, and Visual Basic, etc.
• It supports a range of application types, including desktop, web,
mobile, and gaming applications.
The .NET Framework includes two
main components:
• The Common Language Runtime (CLR)
• The .NET Framework Class Library.
• The CLR is responsible for managing the execution of code written in
any of the supported languages, while the class library provides a
large set of pre-built functions and classes.
Advantages:
• .NET Framework is its support for a variety of programming
languages.
• This means that developers can choose the language that best fits their needs
and expertise
• The same set of libraries and tools provided by the framework.
• .NET Framework support for a variety of application types.
• The framework includes libraries and tools for creating desktop, web, mobile,
and gaming applications, which makes it a versatile choice for developers
working on a wide range of projects.
• The .NET Framework also provides a number of features that help
improve the security, reliability, and performance of applications.
• These include features such as code access security, automatic
memory management, and just-in-time (JIT) compilation, which helps
improve the speed of application execution.
• The .NET Framework is also designed to integrate with other
Microsoft technologies, such as Microsoft SQL Server, Microsoft
SharePoint, and Microsoft Office, which can make it easier to build
applications that work seamlessly with other Microsoft products
• .NET is a software framework that is designed and developed by
Microsoft.
• The first version of the .Net framework was 1.0 which came in the
year 2002.
• In easy words, it is a virtual machine for compiling and executing
programs written in different languages like C#, VB.Net, etc.
• It is used to develop Form-based applications, Web-based
applications, and Web services.
• It is used to build applications for Windows, phones, web, etc.
There are three significant phases of the
development of .NET technology.
• OLE Technology
• COM Technology
• .NET Technology
• OLE Technology: OLE (Object Linking and Embedding)
• is one of the technologies of Microsoft’s component document.
• Basically, its main purpose is to link elements from different applications with
each other.
• COM Technology: Microsoft COM (Common Object Model)
• enables various software components to communicate.
• COM is mostly used by developers for various purposes like creating reusable
software components, linking components together to build applications.
• .NET Technology:
• .NET technology of collection or set of technologies to develop windows and
web applications.
• The technology of .Net is developed by Microsoft and was launched in Feb.
2002, by basic definition, Microsoft’s new Internet Strategy.
• It was originally called NGWS (Next Generation Web Services).
Programming Languages which are
designed and developed by Microsoft are:
• C#.NET
• VB.NET
• C++.NET
• J#.NET
• F#.NET
• JSCRIPT.NET
• WINDOWS POWERSHELL
• IRON RUBY
• IRON PYTHON
• C OMEGA
• ASML(Abstract State Machine Language)
Main Components of .NET
Framework
• Common Language Runtime(CLR):
• CLR is the basic and Virtual Machine component of the .NET
Framework.
• It is the run-time environment in the .NET Framework that runs the
codes and helps in making the development process easier by
providing various services such as remoting, thread management,
type safety, memory management, robustness, etc.
• Basically, it is responsible for managing the execution of .NET
programs regardless of any .NET programming language.
• Framework Class Library(FCL):
• It is the collection of reusable, object-oriented class libraries and
methods, etc that can be integrated with CLR.
• It is just like the header files in C/C++ and packages in java.
• Installing the .NET framework basically is the installation of CLR and
FCL into the system.
Is the .NET application platform
dependent or platform independent?
• The combination of Operating System Architecture and CPU Architecture is
known as the platform.
• A .NET application is platform-dependent because of the .NET framework
which is only able to run on the Windows-based operating system.
• The .Net application is platform-independent also because of the Mono
framework.
• Using the Mono framework the .Net application can run on any Operating
System including windows.
• Mono is a free and open-source .NET Framework-compatible software framework.
• Mono framework is a third-party software developed by Novell
Company which is now a part of Micro Focus Company.
NET Version CLR Version Development tool Windows Support
Microsoft.Activities The Microsoft.Activities namespace provides support for Windows Workflow Foundation applications.
Microsoft.CSharp The Microsoft.CSharp namespace has support for compilation and code generation for the C# source code.
Microsoft.VisualBasic The Microsoft.VisualBasic namespace has support for compilation and code generation for the VisualBasic source code.
System The System namespace has base classes for definition of interfaces, data types, events, event handlers, attributes, processing exceptions etc.
System.Activities The System.Activities namespace handles the creation and working with activities in the Window Workflow Foundation using various classes.
System.Collections The System.Collections namespace has multiple standard, specialized, and generic collection objects that are defined using various types.
System.Data The System.Data namespace accesses and manages data from various sources using different classes.
System.Globalization The System.Globalization namespace handles language, country, calendars used, format patterns for dates, etc. using various classes.
System.IO The System.IO namespaces support IO like data read/write into streams, data compression, communicate using named pipes etc. using various types.
System.Linq The System.Linq namespace supports Language-Integrated Query (LINQ) using various types.
System.Media The System.Media namespace handles sound files and accessing the sounds provided by the system using various classes.
The System.Net namespace provides an interface for network protocols, cache policies for web resources, composing and sending e-mail etc. using various
System.Net
classes.
System.Security The System.Security namespace has the .NET security system and permissions. Child namespaces provide authentication, cryptographic services etc.
System.Threading The System.Threading namespace allows multithreaded programming using various types.