Download - DDAB, VB.NET, .NET Framework
Microsoft .NET Framework
Presented by: Manohar Prasad,Specialization: IB+IT,Roll No.- 1999/01030003
What is .NET ?What is .NET ?
.NET is a platform that provides a standardized set of services.
It’s just like Windows, except distributed over the Internet.It exports a common interface so that it’s programs can be run on any system that supports .NET.
A specific software frameworkIncludes a common runtime
.NET is a platform that provides a standardized set of services.
It’s just like Windows, except distributed over the Internet.It exports a common interface so that it’s programs can be run on any system that supports .NET.
A specific software frameworkIncludes a common runtime
04/11/23 2www.manoharprasad.wordpress.com
Event-Driven Programming
Event-driven programming means making some action to perform (through some program/code) on the occurrence of events.
In this programming, programmer does not specify how to create objects, how to place them on screen and how to change their properties etc. He simply writes the code to handle events.
.NET Framework.NET Framework
Programming model for .NETPlatform for running .NET managed code in a virtual machineProvides a very good environment to develop networked applications and Web ServicesProvides programming API and unified language-independent development framework
Programming model for .NETPlatform for running .NET managed code in a virtual machineProvides a very good environment to develop networked applications and Web ServicesProvides programming API and unified language-independent development framework
04/11/23 4www.manoharprasad.wordpress.com
The Core of .NET Framework: FCL & CLR
Common Language RuntimeGarbage collectionLanguage integrationMultiple versioning support (no more DLL hell!)Integrated security
Framework Class LibraryProvides the core functionality:ASP.NET, Web Services, ADO.NET, Windows Forms, IO, XML, etc.
04/11/23 5www.manoharprasad.wordpress.com
.NET Framework Visual Studio .NET
Operating SystemOperating System
Common Language RuntimeCommon Language Runtime
.NET Framework (Base Class Library).NET Framework (Base Class Library)
ADO .NETADO .NET
ASP .NETASP .NETWeb Forms Web ServicesWeb Forms Web Services
Mobile Internet ToolkitMobile Internet Toolkit
WindowsWindowsFormsForms
Common Language SpecificationCommon Language Specification
C++C++ C#C# VBVB PerlPerl J#J# ……
Visu
al S
tud
io .N
ET
Visu
al S
tud
io .N
ET
04/11/23 6www.manoharprasad.wordpress.com
Common Language RuntimeCommon Language RuntimeManages running code – like a virtual machine
ThreadingMemory managementNo interpreter: JIT-compiler produces native code – during the program installation or at run time
Manages running code – like a virtual machine
ThreadingMemory managementNo interpreter: JIT-compiler produces native code – during the program installation or at run time
04/11/23 7www.manoharprasad.wordpress.com
Automatic Memory Management
The CLR manages memory for managed code
All allocations of objects and buffers made from a Managed HeapUnused objects and buffers are cleaned up automatically through Garbage Collection
04/11/23 8www.manoharprasad.wordpress.com
Multiple Language Support
IL (MSIL or CIL) – Intermediate LanguageIL (MSIL or CIL) – Intermediate Language It is low-level (machine) language, like It is low-level (machine) language, like
Assembler, but is Object-orientedAssembler, but is Object-oriented CTS is a rich type system built into the CLRCTS is a rich type system built into the CLR
Implements various types (Implements various types (intint, float, string, …), float, string, …) And operations on those typesAnd operations on those types
CLS is a set of specifications that all CLS is a set of specifications that all languages and libraries need to followlanguages and libraries need to follow This will ensure interoperability between This will ensure interoperability between
languageslanguages
04/11/23 9www.manoharprasad.wordpress.com
Intermediate Language
.NET languages are compiled to an Intermediate Language (IL)IL is also known as MSIL or CILCLR compiles IL in just-in-time (JIT) manner – each function is compiled just before executionThe JIT code stays in memory for subsequent calls
04/11/23 10www.manoharprasad.wordpress.com
Common Type System (CTS)
All .NET languages have the same primitive data types. An int in C# is the same as an int in VB.NETWhen communicating between modules written in any .NET language, the types are guaranteed to be compatible on the binary level
04/11/23 11www.manoharprasad.wordpress.com
Common Language Specification
Any language that conforms to the CLS is a .NET language
A language that conforms to the CLS has the ability to take full advantage of the Framework Class Library (FCL)
04/11/23 12www.manoharprasad.wordpress.com
04/11/23 13www.manoharprasad.wordpress.com