SlideShare ist ein Scribd-Unternehmen logo
1 von 31
INTRODUCTION TO .
NET & VISUAL
STUDIO
ADVANTAGES OF .NET
Object-oriented programming
Good design
Language independence
Better support for dynamic Web pages
Efficient data access
Code sharing
Improved security
Zero-impact installation
Support for Web services
Any Platform
Object-oriented programming - Both the .NET Framework and C# are
entirely based on object-oriented principles right from the start.
Good design - A base class library, which is designed from the ground
up in a highly intuitive way.
Language independence - With .NET, all of the languages Visual
Basic .NET, C#, J#, and managed C++ compile to a common Intermediate
Language. This means that languages are interoperable in a way that has
not been seen before.
Better support for dynamic Web pages - While ASP offered a lot
of flexibility, it was also inefficient because of its use of interpreted
scripting languages, and the lack of object-oriented design often
resulted in messy ASP code. .NET offers an integrated support for
Web pages, using a new technology - ASP.NET. With ASP.NET, code
in your pages is compiled, and may be written in a .NET-aware highlevel language such as C#, J#, or Visual Basic 2005.
Efficient data access - A set of .NET components, collectively known
as ADO.NET, provides efficient access to relational databases and a
variety of data sources. Components are also available to allow access
to the file system, and to directories. In particular, XML support is built
into .NET, allowing you to manipulate data, which may be imported
from or exported to non-Windows platforms.
Any Platform – dot net is a Multilanguage and Multiplatform operating
environment.
Code sharing - .NET has completely revamped the way that code is
shared between applications, introducing the concept of the assembly,
which replaces the traditional DLL. Assemblies have formal facilities for
versioning, and different versions of assemblies can exist side by side.
Improved security - Each assembly can also contain built-in security
information that can indicate precisely who or what category of user or
process is allowed to call which methods on which classes. This gives
you a very fine degree of control over how the assemblies that you
deploy can be used.
Zero-impact installation - There are two types of assemblies:
shared and private. Shared assemblies are common libraries available
to all software, while private assemblies are intended only for use with
particular software. A private assembly is entirely self-contained, so the
process of installing it is simple. There are no registry entries; the
appropriate files are simply placed in the appropriate folder in the file
system.
Support for Web services - .NET has fully integrated support for
developing Web services as easily as you’d develop any other type of
application.
The .NET Framework
.NET is a collection of tools, technologies, and languages that all work
together in a framework to provide the solutions that are needed to easily
build and deploy truly robust enterprise applications.
Objectives:
“Microsoft .NET is based on the .NET Framework, which consists of two major
components: the Common Language Runtime (CLR) and an extensive set of Framework
Class Libraries (FCL). The CLR defines a common programming model and a
standard type system for cross-platform, multi-language development.”
.NET IS MULTI-LANGUAGE
.NET supports VB, C# (C-sharp), C++, J# (Java 1.2), Eiffel, etc.

code.vb

code.cs

code.cpp

Development Tools

app.exe

...
.NET IS CROSS- platform:
Compiled .NET apps run on any supported
PLATFORM
APP.exe

?
Win64

Win32
(XP,2K,98)

WinCE
HOW IS CROSSPLATFORM ACHIEVED?
Cross-platform execution realized in two
ways:
1.apps are written against Framework Class
Library (FCL), not underlying OS
2.compilers generate generic assembly
language which must be executed by the
Common Language Runtime (CLR)
(1) FCL
Framework Class Library
1000's of predefined classes
common subset across all platforms &
languages
networking, database access, XML
processing, GUI, Web, etc.
Goal?
FCL is a portable operating system
.NET FRAMEWORK ARCHITECTURE
COMMON LANGUAGE
Common Language Specification (CLS) is a set of specifications or
SPECIFICATION
guidelines defining a .NET
language. CLS defines the common types of managed languages,
which is a subset of the Common Type System(CTS).
MANAGED LANGUAGES
AND CLS programming languages, such as C#,
.NET supports managed

VB.NET, C++, J#, execute under the management of a common
runtime called the CLR.

-> Managed applications compile to Microsoft Intermediate Language
(MSIL) and meta data.
MSIL is a low level language that all managed languages compile to
instead of native binary.
In .NET, a managed application is called an assembly.
COMMON TYPE SYSTEM
(CTS) System (CTS) is a catalog of .NET types.
The Common Type
ex:
System.Int32, System. Decimal,
System. Boolean, System. Value
System. Object is a base class for remaining all the sub classes.
The contribution of CTS extend well beyond the definitions of
common data types.
CTS helps with type safeness, enhances language
interoperability, aids in segregating application domains, and more.
.NET FRAMEWORK CLASS
LIBRARY

The .NET Framework Class Library (FCL) is a set of managed
classes that provide access to system services.
Ex:
File I/O, sockets, database access, remoting, and XML are just some of
the services available in the FCL.
FCL includes some 600 managed classes.
A flat hierarchy consisting of hundreds of classes would be difficult
to navigate. Microsoft partitioned the managed classes of FCL into
separate namespaces based on functionality.
For example,
classes pertaining to local input/output can be found in
the namespace - System. IO. To further refine the hierarchy, FCL
namespaces are often nested; the tiers of namespaces are delimited with
dots. System.Runtime.InteropServices,
System.Security.Permissions, and
System.Windows.Forms
are
examples of nested namespaces.
The root namespace is System, which provides classes for
console input/output, management of application domains, delegates,
garbage collection, and more.
COMMON LANGUAGE
RUNTIME
The Common Language Runtime is the engine of .NET
and the common runtime of all managed languages.
CLR manages security, code verification, type
verification, exception handling, garbage collection, a common
runtime, and other important of program execution.
.NET Framework is a managed environment.
Language interoperability is one goal of .NET.
CLR: (Common Language Runtime)
The common language runtime monitors the execution of .NET
applications and provides essential services. It manages memory,
handles exceptions, ensures that applications are well-behaved, and
much more.
Central to the .NET Framework is its runtime execution environment,
known as the Common Language Runtime (CLR) or the .NET runtime. Code
running under the control of the CLR is often termed managed code.
However, before it can be executed by the CLR, any source code that
you develop (in C# or some other language) needs to be compiled.
Compilation occurs in two steps in .NET:
1.Compilation of source code to IL
2.Compilation of IL to platform-specific code by the CLR
This two-stage compilation process is very important, because the
existence of the IL (managed code) is the key to providing many of the
benefits of .NET.
JUST-IN-TIME
COMPILATION which is converted into
Assemblies contain MSIL,

native binary and executed at runtime, using a process aptly named
Just-in-Time compilation, or jitting. An assembly is subjected to two
compilations.
First,
managed code is compiled to create the actual assembly. Managed
compilers, such as csc and vbc, compile C# and VB.NET source code
into an assembly that contains MSIL and metadata.
Second,
the assembly is compiled at load time, converting the MSIL into native
binary that is optimized for the current platform and hardware. When an
assembly is jitted, an in-memory cache of the binary is created and
executed. Just-in-Time compilers are called Jitters.
STEPS TO COMPILE &
EXECUTION
The common language runtime is responsible for executing
your application code.
When you write an application for the .NET with
a language such as C# , VB, Java Script, your source code is
never compiled directly into machine code. Instead the C# or
VB compiler converts your code into a special language
named (Micro Soft Intermediate Language) MSIL.
MSIL looks very much like a object oriented assembly language.
However, unlike a typical assembly language, it is not CPU specific.
MSIL is a low level and plat form independent language.
When your application actually executes, the MSIL code is “justin-time” compiled into machine code by JITTER (The Just-In-Time
compiler).
Normally your entire application is not compiled from MSIL into
machine code. Instead the methods that are actually called during
execution are compiled.
In reality .NET Framework understands only one language:
MSIL. However, you can write applications using languages such as
C#, VB.NET for the .NET framework because the .NET framework
includes compilers for these languages that enable you to compile your
code into MSIL.
ASSEMBLIES

.NET packages components into assemblies
. 1 assembly = 1 or more compiled classes

 .EXE represents an assembly with classes + Main program
 .DLL represents an assembly with classes

code.vb
code.vb
code.cs

Development Tools

assembly

.DLL
ADVANTAGES OF MANAGED
CODE
Microsoft Intermediate Language shares with Java byte code
the idea that it is a low-level language with a simple syntax
(based on numeric codes rather than text), which can be very
quickly translated into native machine code. Having this welldefined universal syntax for code has significant advantages.

Weitere Àhnliche Inhalte

Was ist angesagt?

.net CLR
.net CLR.net CLR
.net CLRDevTalk
 
Introduction to ,NET Framework
Introduction to ,NET FrameworkIntroduction to ,NET Framework
Introduction to ,NET FrameworkANURAG SINGH
 
Microsoft dot net framework
Microsoft dot net frameworkMicrosoft dot net framework
Microsoft dot net frameworkAshish Verma
 
Net Fundamentals
Net FundamentalsNet Fundamentals
Net FundamentalsAli Taki
 
Components of .NET Framework
Components of .NET FrameworkComponents of .NET Framework
Components of .NET FrameworkRoshith S Pai
 
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)citizenmatt
 
Visual Studio 2010 and .NET Framework 4.0 Overview
Visual Studio 2010 and .NET Framework 4.0 OverviewVisual Studio 2010 and .NET Framework 4.0 Overview
Visual Studio 2010 and .NET Framework 4.0 OverviewHarish Ranganathan
 
New microsoft office word document
New microsoft office word documentNew microsoft office word document
New microsoft office word documentSIVAJISADHANA
 
.NET Framework Overview
.NET Framework Overview.NET Framework Overview
.NET Framework OverviewDoncho Minkov
 
Inside .net framework
Inside .net frameworkInside .net framework
Inside .net frameworkFaisal Aziz
 
Dot Net Fundamentals
Dot Net FundamentalsDot Net Fundamentals
Dot Net FundamentalsLiquidHub
 
Introduction to .net FrameWork by QuontraSolutions
Introduction to .net FrameWork by QuontraSolutionsIntroduction to .net FrameWork by QuontraSolutions
Introduction to .net FrameWork by QuontraSolutionsQuontra Solutions
 
Architecture of net framework
Architecture of net frameworkArchitecture of net framework
Architecture of net frameworkumesh patil
 
Introduction to .net framework
Introduction to .net frameworkIntroduction to .net framework
Introduction to .net frameworkArun Prasad
 
6.origins genesis of .net technology
6.origins genesis of .net technology6.origins genesis of .net technology
6.origins genesis of .net technologyPramod Rathore
 

Was ist angesagt? (19)

.net CLR
.net CLR.net CLR
.net CLR
 
Introduction to ,NET Framework
Introduction to ,NET FrameworkIntroduction to ,NET Framework
Introduction to ,NET Framework
 
Introduction to .net
Introduction to .netIntroduction to .net
Introduction to .net
 
Microsoft dot net framework
Microsoft dot net frameworkMicrosoft dot net framework
Microsoft dot net framework
 
Net Fundamentals
Net FundamentalsNet Fundamentals
Net Fundamentals
 
Components of .NET Framework
Components of .NET FrameworkComponents of .NET Framework
Components of .NET Framework
 
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)
 
DOT Net overview
DOT Net overviewDOT Net overview
DOT Net overview
 
Visual Studio 2010 and .NET Framework 4.0 Overview
Visual Studio 2010 and .NET Framework 4.0 OverviewVisual Studio 2010 and .NET Framework 4.0 Overview
Visual Studio 2010 and .NET Framework 4.0 Overview
 
.Net framework
.Net framework.Net framework
.Net framework
 
New microsoft office word document
New microsoft office word documentNew microsoft office word document
New microsoft office word document
 
.NET Framework Overview
.NET Framework Overview.NET Framework Overview
.NET Framework Overview
 
Inside .net framework
Inside .net frameworkInside .net framework
Inside .net framework
 
Dot Net Fundamentals
Dot Net FundamentalsDot Net Fundamentals
Dot Net Fundamentals
 
Introduction to .net FrameWork by QuontraSolutions
Introduction to .net FrameWork by QuontraSolutionsIntroduction to .net FrameWork by QuontraSolutions
Introduction to .net FrameWork by QuontraSolutions
 
Architecture of net framework
Architecture of net frameworkArchitecture of net framework
Architecture of net framework
 
Introduction to .net framework
Introduction to .net frameworkIntroduction to .net framework
Introduction to .net framework
 
Microsoft .NET Framework
Microsoft .NET FrameworkMicrosoft .NET Framework
Microsoft .NET Framework
 
6.origins genesis of .net technology
6.origins genesis of .net technology6.origins genesis of .net technology
6.origins genesis of .net technology
 

Ähnlich wie .Net framework

Dot net-interview-questions-and-answers part i
Dot net-interview-questions-and-answers part iDot net-interview-questions-and-answers part i
Dot net-interview-questions-and-answers part iRakesh Joshi
 
Dot net-interview-questions-and-answers part i
Dot net-interview-questions-and-answers part iDot net-interview-questions-and-answers part i
Dot net-interview-questions-and-answers part iRakesh Joshi
 
Chapter1_Part1.pptx
Chapter1_Part1.pptxChapter1_Part1.pptx
Chapter1_Part1.pptxRaajzKoirala
 
Net framework
Net frameworkNet framework
Net frameworkjhsri
 
Unit I- Introduction to .NET Framework.pdf
Unit I- Introduction to .NET Framework.pdfUnit I- Introduction to .NET Framework.pdf
Unit I- Introduction to .NET Framework.pdfUjwala Junghare
 
.Net framework interview questions
.Net framework interview questions.Net framework interview questions
.Net framework interview questionsMir Majid
 
Session2 (3)
Session2 (3)Session2 (3)
Session2 (3)DrUjwala1
 
dotNET frameworks
dotNET frameworksdotNET frameworks
dotNET frameworksnawal saad
 
Microsoft.Net
Microsoft.NetMicrosoft.Net
Microsoft.NetVishwa Mohan
 
Dot net
Dot netDot net
Dot netpublic
 
New microsoft office word document
New microsoft office word documentNew microsoft office word document
New microsoft office word documentSIVAJISADHANA
 

Ähnlich wie .Net framework (20)

1.0
1.01.0
1.0
 
Dot net-interview-questions-and-answers part i
Dot net-interview-questions-and-answers part iDot net-interview-questions-and-answers part i
Dot net-interview-questions-and-answers part i
 
Dot net-interview-questions-and-answers part i
Dot net-interview-questions-and-answers part iDot net-interview-questions-and-answers part i
Dot net-interview-questions-and-answers part i
 
Chapter1_Part1.pptx
Chapter1_Part1.pptxChapter1_Part1.pptx
Chapter1_Part1.pptx
 
Net framework
Net frameworkNet framework
Net framework
 
c#.pptx
c#.pptxc#.pptx
c#.pptx
 
Unit I- Introduction to .NET Framework.pdf
Unit I- Introduction to .NET Framework.pdfUnit I- Introduction to .NET Framework.pdf
Unit I- Introduction to .NET Framework.pdf
 
Inside.Net
Inside.NetInside.Net
Inside.Net
 
Chapter1
Chapter1Chapter1
Chapter1
 
Introduction of .net framework
Introduction of .net frameworkIntroduction of .net framework
Introduction of .net framework
 
.Net framework interview questions
.Net framework interview questions.Net framework interview questions
.Net framework interview questions
 
.Net overview
.Net overview.Net overview
.Net overview
 
.Net Overview
.Net Overview.Net Overview
.Net Overview
 
Session2 (3)
Session2 (3)Session2 (3)
Session2 (3)
 
.Net
.Net.Net
.Net
 
dotNET frameworks
dotNET frameworksdotNET frameworks
dotNET frameworks
 
Microsoft.Net
Microsoft.NetMicrosoft.Net
Microsoft.Net
 
Dot net
Dot netDot net
Dot net
 
Visual studio
Visual studioVisual studio
Visual studio
 
New microsoft office word document
New microsoft office word documentNew microsoft office word document
New microsoft office word document
 

KĂŒrzlich hochgeladen

Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
USPSÂź Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPSÂź Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPSÂź Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPSÂź Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
call girls in Kamla Market (DELHI) 🔝 >àŒ’9953330565🔝 genuine Escort Service đŸ”âœ”ïžâœ”ïž
call girls in Kamla Market (DELHI) 🔝 >àŒ’9953330565🔝 genuine Escort Service đŸ”âœ”ïžâœ”ïžcall girls in Kamla Market (DELHI) 🔝 >àŒ’9953330565🔝 genuine Escort Service đŸ”âœ”ïžâœ”ïž
call girls in Kamla Market (DELHI) 🔝 >àŒ’9953330565🔝 genuine Escort Service đŸ”âœ”ïžâœ”ïž9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Visit to a blind student's school🧑‍🩯🧑‍🩯(community medicine)
Visit to a blind student's school🧑‍🩯🧑‍🩯(community medicine)Visit to a blind student's school🧑‍🩯🧑‍🩯(community medicine)
Visit to a blind student's school🧑‍🩯🧑‍🩯(community medicine)lakshayb543
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 

KĂŒrzlich hochgeladen (20)

Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
USPSÂź Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPSÂź Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPSÂź Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPSÂź Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
call girls in Kamla Market (DELHI) 🔝 >àŒ’9953330565🔝 genuine Escort Service đŸ”âœ”ïžâœ”ïž
call girls in Kamla Market (DELHI) 🔝 >àŒ’9953330565🔝 genuine Escort Service đŸ”âœ”ïžâœ”ïžcall girls in Kamla Market (DELHI) 🔝 >àŒ’9953330565🔝 genuine Escort Service đŸ”âœ”ïžâœ”ïž
call girls in Kamla Market (DELHI) 🔝 >àŒ’9953330565🔝 genuine Escort Service đŸ”âœ”ïžâœ”ïž
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Visit to a blind student's school🧑‍🩯🧑‍🩯(community medicine)
Visit to a blind student's school🧑‍🩯🧑‍🩯(community medicine)Visit to a blind student's school🧑‍🩯🧑‍🩯(community medicine)
Visit to a blind student's school🧑‍🩯🧑‍🩯(community medicine)
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 

.Net framework

  • 1. INTRODUCTION TO . NET & VISUAL STUDIO
  • 2.
  • 3.
  • 4. ADVANTAGES OF .NET Object-oriented programming Good design Language independence Better support for dynamic Web pages Efficient data access Code sharing Improved security Zero-impact installation Support for Web services Any Platform
  • 5. Object-oriented programming - Both the .NET Framework and C# are entirely based on object-oriented principles right from the start. Good design - A base class library, which is designed from the ground up in a highly intuitive way. Language independence - With .NET, all of the languages Visual Basic .NET, C#, J#, and managed C++ compile to a common Intermediate Language. This means that languages are interoperable in a way that has not been seen before.
  • 6. Better support for dynamic Web pages - While ASP offered a lot of flexibility, it was also inefficient because of its use of interpreted scripting languages, and the lack of object-oriented design often resulted in messy ASP code. .NET offers an integrated support for Web pages, using a new technology - ASP.NET. With ASP.NET, code in your pages is compiled, and may be written in a .NET-aware highlevel language such as C#, J#, or Visual Basic 2005.
  • 7. Efficient data access - A set of .NET components, collectively known as ADO.NET, provides efficient access to relational databases and a variety of data sources. Components are also available to allow access to the file system, and to directories. In particular, XML support is built into .NET, allowing you to manipulate data, which may be imported from or exported to non-Windows platforms. Any Platform – dot net is a Multilanguage and Multiplatform operating environment.
  • 8. Code sharing - .NET has completely revamped the way that code is shared between applications, introducing the concept of the assembly, which replaces the traditional DLL. Assemblies have formal facilities for versioning, and different versions of assemblies can exist side by side. Improved security - Each assembly can also contain built-in security information that can indicate precisely who or what category of user or process is allowed to call which methods on which classes. This gives you a very fine degree of control over how the assemblies that you deploy can be used.
  • 9. Zero-impact installation - There are two types of assemblies: shared and private. Shared assemblies are common libraries available to all software, while private assemblies are intended only for use with particular software. A private assembly is entirely self-contained, so the process of installing it is simple. There are no registry entries; the appropriate files are simply placed in the appropriate folder in the file system. Support for Web services - .NET has fully integrated support for developing Web services as easily as you’d develop any other type of application.
  • 10. The .NET Framework .NET is a collection of tools, technologies, and languages that all work together in a framework to provide the solutions that are needed to easily build and deploy truly robust enterprise applications. Objectives: “Microsoft .NET is based on the .NET Framework, which consists of two major components: the Common Language Runtime (CLR) and an extensive set of Framework Class Libraries (FCL). The CLR defines a common programming model and a standard type system for cross-platform, multi-language development.”
  • 11. .NET IS MULTI-LANGUAGE .NET supports VB, C# (C-sharp), C++, J# (Java 1.2), Eiffel, etc. code.vb code.cs code.cpp Development Tools app.exe ...
  • 12. .NET IS CROSS- platform: Compiled .NET apps run on any supported PLATFORM APP.exe ? Win64 Win32 (XP,2K,98) WinCE
  • 13. HOW IS CROSSPLATFORM ACHIEVED? Cross-platform execution realized in two ways: 1.apps are written against Framework Class Library (FCL), not underlying OS 2.compilers generate generic assembly language which must be executed by the Common Language Runtime (CLR)
  • 14. (1) FCL Framework Class Library 1000's of predefined classes common subset across all platforms & languages networking, database access, XML processing, GUI, Web, etc. Goal? FCL is a portable operating system
  • 16. COMMON LANGUAGE Common Language Specification (CLS) is a set of specifications or SPECIFICATION guidelines defining a .NET language. CLS defines the common types of managed languages, which is a subset of the Common Type System(CTS).
  • 17. MANAGED LANGUAGES AND CLS programming languages, such as C#, .NET supports managed VB.NET, C++, J#, execute under the management of a common runtime called the CLR. -> Managed applications compile to Microsoft Intermediate Language (MSIL) and meta data. MSIL is a low level language that all managed languages compile to instead of native binary. In .NET, a managed application is called an assembly.
  • 18. COMMON TYPE SYSTEM (CTS) System (CTS) is a catalog of .NET types. The Common Type ex: System.Int32, System. Decimal, System. Boolean, System. Value System. Object is a base class for remaining all the sub classes. The contribution of CTS extend well beyond the definitions of common data types. CTS helps with type safeness, enhances language interoperability, aids in segregating application domains, and more.
  • 19. .NET FRAMEWORK CLASS LIBRARY The .NET Framework Class Library (FCL) is a set of managed classes that provide access to system services. Ex: File I/O, sockets, database access, remoting, and XML are just some of the services available in the FCL. FCL includes some 600 managed classes.
  • 20. A flat hierarchy consisting of hundreds of classes would be difficult to navigate. Microsoft partitioned the managed classes of FCL into separate namespaces based on functionality. For example, classes pertaining to local input/output can be found in the namespace - System. IO. To further refine the hierarchy, FCL namespaces are often nested; the tiers of namespaces are delimited with dots. System.Runtime.InteropServices, System.Security.Permissions, and System.Windows.Forms are examples of nested namespaces. The root namespace is System, which provides classes for console input/output, management of application domains, delegates, garbage collection, and more.
  • 21. COMMON LANGUAGE RUNTIME The Common Language Runtime is the engine of .NET and the common runtime of all managed languages. CLR manages security, code verification, type verification, exception handling, garbage collection, a common runtime, and other important of program execution.
  • 22. .NET Framework is a managed environment. Language interoperability is one goal of .NET. CLR: (Common Language Runtime) The common language runtime monitors the execution of .NET applications and provides essential services. It manages memory, handles exceptions, ensures that applications are well-behaved, and much more.
  • 23. Central to the .NET Framework is its runtime execution environment, known as the Common Language Runtime (CLR) or the .NET runtime. Code running under the control of the CLR is often termed managed code. However, before it can be executed by the CLR, any source code that you develop (in C# or some other language) needs to be compiled. Compilation occurs in two steps in .NET: 1.Compilation of source code to IL 2.Compilation of IL to platform-specific code by the CLR This two-stage compilation process is very important, because the existence of the IL (managed code) is the key to providing many of the benefits of .NET.
  • 24. JUST-IN-TIME COMPILATION which is converted into Assemblies contain MSIL, native binary and executed at runtime, using a process aptly named Just-in-Time compilation, or jitting. An assembly is subjected to two compilations. First, managed code is compiled to create the actual assembly. Managed compilers, such as csc and vbc, compile C# and VB.NET source code into an assembly that contains MSIL and metadata.
  • 25. Second, the assembly is compiled at load time, converting the MSIL into native binary that is optimized for the current platform and hardware. When an assembly is jitted, an in-memory cache of the binary is created and executed. Just-in-Time compilers are called Jitters.
  • 26. STEPS TO COMPILE & EXECUTION The common language runtime is responsible for executing your application code. When you write an application for the .NET with a language such as C# , VB, Java Script, your source code is never compiled directly into machine code. Instead the C# or VB compiler converts your code into a special language named (Micro Soft Intermediate Language) MSIL.
  • 27. MSIL looks very much like a object oriented assembly language. However, unlike a typical assembly language, it is not CPU specific. MSIL is a low level and plat form independent language. When your application actually executes, the MSIL code is “justin-time” compiled into machine code by JITTER (The Just-In-Time compiler).
  • 28. Normally your entire application is not compiled from MSIL into machine code. Instead the methods that are actually called during execution are compiled. In reality .NET Framework understands only one language: MSIL. However, you can write applications using languages such as C#, VB.NET for the .NET framework because the .NET framework includes compilers for these languages that enable you to compile your code into MSIL.
  • 29.
  • 30. ASSEMBLIES .NET packages components into assemblies . 1 assembly = 1 or more compiled classes  .EXE represents an assembly with classes + Main program  .DLL represents an assembly with classes code.vb code.vb code.cs Development Tools assembly .DLL
  • 31. ADVANTAGES OF MANAGED CODE Microsoft Intermediate Language shares with Java byte code the idea that it is a low-level language with a simple syntax (based on numeric codes rather than text), which can be very quickly translated into native machine code. Having this welldefined universal syntax for code has significant advantages.