0% found this document useful (0 votes)
8 views

Introduction to .Net Fw

.NET Framework is a Microsoft-developed software framework for building applications on Windows, supporting various programming languages. It features components like CLR for execution, CLI for language neutrality, and CTS for type compatibility, along with a rich Class Library for common functionalities. The framework allows the development of diverse applications, including web services, mobile apps, and games, organized into solutions and projects within Visual Studio.

Uploaded by

godsonsoban0342
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Introduction to .Net Fw

.NET Framework is a Microsoft-developed software framework for building applications on Windows, supporting various programming languages. It features components like CLR for execution, CLI for language neutrality, and CTS for type compatibility, along with a rich Class Library for common functionalities. The framework allows the development of diverse applications, including web services, mobile apps, and games, organized into solutions and projects within Visual Studio.

Uploaded by

godsonsoban0342
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 20

INTRODUCTION TO .

NET FRAMEWORK
.Net Framework
 .Net is a software framework developed by Microsoft
to run on Windows machine
 It is used to develop Form-based applications,
Web-based applications and Web services.
 It is used to build applications for Windows,
phone, web etc.
 .NET Framework is language independent. i.e. as a
developer we can write .net programs using c#,
c++, vb, python within a single environment. So, it
is called language neutral framework.

I MCA - .NET PROGRAMMING DR G.T.PRABAVATHI


HISTORY

.net 5.0 in 2020. 7.0 in 2022

I MCA - .NET PROGRAMMING DR G.T.PRABAVATHI


NAMESPACE CLASS LIBRARY

CLI & CLR


ASSEMBLIES (basic
components of
.net FW)
.Net
Framework

I MCA - .NET PROGRAMMING


DR G.T.PRABAVATHI
CLR (Common Language Runtime)
 All programs written in .Net framework are executed
by Common Language Runtime (CLR).

 It is the runtime (executing) engine of .net FW.

 In short it is called as runtime

 It provides services like thread management, garbage


collection, type-safety, exception handling, and more.

 .Net Programs are executed in CLR in contrast to a


hardware environment
I MCA - .NET PROGRAMMING
DR G.T.PRABAVATHI
 Programs written for .NET Framework are compiled
into CIL (Common Intermediate Language) instead of
directly converting into machine code

 When a .net program is executed, an architecture


specific just-in-time(JIT) compiler turns the CIL code
into machine code

II MCA - .NET PROGRAMMING


DR G.T.PRABAVATHI
CLR

II MCA - .NET PROGRAMMING


DR G.T.PRABAVATHI
CLI
 Common Language Infrastructure (CLI) provides a
language-neutral platform for application
development and execution.

 The functions will not be tied to one language but will


be available across the many languages supported by
the framework.

 It allows us to use various high-level programming


languages on various machines without rewriting the
code.

II MCA - .NET PROGRAMMING


DR G.T.PRABAVATHI
CTS (COMMON TYPE SYSTEM)
 .Net languages can interact with each other. For
Communicating between programs written in any .NET
complaint language, the types have to be compatible on the
basic level .

 CTS provides basic set of data types (like string, integer,


float, etc) that can be used in different .Net languages in
common.

 CTS is responsible for cross language integration. The CLR


can load and execute the source code written in any .Net
language, only if the type is described in the CTS

II MCA - .NET PROGRAMMING


DR G.T.PRABAVATHI
CLASS LIBRARIES
Class Library is the collection of classes, namespaces,
interfaces and value types that are used for .NET
applications.

It provides a set of APIs and types for common functionality.

It contains thousands of classes that supports the following


functions.
 Base and user-defined data types
 Support for exceptions handling
 input/output and stream operations
 Ability to create Windows-based GUI applications
 Ability to create web-client and server applications
 Support for creating web services
II MCA - .NET PROGRAMMING
DR G.T.PRABAVATHI
NAME SPACES
The .Net Framework Class Library (FCL ) is a large collection of thousands of Classes.
These Classes are organized in a hierarchical tree. We can uniquely identify any
Class in the .NET Framework Class Library (FCL ) by using the full Namespaces of
the class

Namespace is a Collection of class libraries

It is used to organize the .Net Framework class library into a logical grouping according
to their usability, functionality, etc.

Logical grouping of classes for the purpose of identification

All Namespaces in .Net start with the keyword SYSTEM. The System Namespaces is
the root for types in the .NET Framework.
Eg:
System.Web.
System.Windows.
System.Data
System.Configuration

I MCA - .NET PROGRAMMING


DR G.T.PRABAVATHI
ASSEMBLIES
 An assembly is a collection of types and resources that
are built to work together and form a logical unit of
functionality.

 Assemblies take the form of executable (.exe) or


dynamic link library (.dll) files, and are the building
blocks of .NET applications.

 They provide the common language runtime with the


information it needs to be aware of type
implementations.

I MCA - .NET PROGRAMMING


DR G.T.PRABAVATHI
How a .Net program is compiled?

I MCA - .NET PROGRAMMING


DR G.T.PRABAVATHI
.net framework architecture

I MCA - .NET PROGRAMMING


DR G.T.PRABAVATHI
.NET ARCHITECTURE

I MCA - .NET PROGRAMMING DR G.T.PRABAVATHI


What type of programs we can
write in .Net Framework ?

Web services, mobile applications, IOT,


games, web interfaces, etc

I MCA - .NET PROGRAMMING


DR G.T.PRABAVATHI
In .net, SOLUTION is a collection of projects.
Each project is a collection of files.
Solution can contain projects of heterogeneous type
(first project can be in c#, second project can be in j#, etc)

Visual Studio .NET will create a new solution with the same name as the
project, placing the solution files in the same directory as the project.

I MCA - .NET PROGRAMMING


DR G.T.PRABAVATHI
SOLUTION EXPLORER
Solution Explorer is a tool window that appears as a pane
in the upper-right side of the Visual Studio (IDE).
If you don't see the Solution Explorer tool window, open
it from the Visual Studio menu bar by clicking
View > Solution Explorer
Solution Explorer is a special window that enables you to
manage solutions, projects, and files. It provides a
complete view of the files in a project, and it enables
you to add or remove files and to organize files into
subfolders.

II MCA - .NET PROGRAMMING


DR G.T.PRABAVATHI
II MCA - .NET PROGRAMMING
DR G.T.PRABAVATHI
II MCA - .NET PROGRAMMING
DR G.T.PRABAVATHI

You might also like