Unit01-Getting Started With .NET Framework 4.0
Unit01-Getting Started With .NET Framework 4.0
Unit 01
Getting started with .NET
Framework 4.0
RNSIT Bengaluru
Topics
2
Framework 4.0,
Components of .NET Framework 4.0: CLR, CTS, Metadata
and Assemblies,
.NET Framework Class Library, Windows Forms,
ASP .NET and ASP .NET AJAX, ADO .NET,
Windows workflow Foundation, Windows Presentation
Foundation, Windows Communication Foundation, Windows
Card Space and LINQ.
RNSIT Bengaluru
RNSIT Bengaluru
Cont.
4
Root is C
Famed Pillars of OOP [ Encapsulation, Polymorphism, Inheritance ]
Data is secure
Support for the generic programming language
Disadvantages:
RNSIT Bengaluru
Cont.
5
RNSIT Bengaluru
Cont.
6
Disadvantages:
RNSIT Bengaluru
Evolution of .NET
.NET Version
4.5
4.0
3.5
3.0
2.0
1.1
1.0
Year
2
01
0
2008
Nov 19 2007
Nov 06 2006
Nov 07 2005
2003
Feb 13 2002
RNSIT Bengaluru
RNSIT Bengaluru
Data Access
Services
Windows
Presentation
Foundation
Windows
Communication
Foundations
Data
Services
Velocity
WinForms
Windows workflow
foundation
ADO
.NET
LINQ
to SQL
Entity
Framework
Core
Parallel
Extensions
Managed
Extensibility
Framework
LINQ
Languages
Dynamic
Language
Runtime
Base Class
Library
Cont..
11
RNSIT Bengaluru
RNSIT Bengaluru
Language Integration
Code execution
Code Safety
Verification
Compilation
RNSIT Bengaluru
Cont..
14
RNSIT Bengaluru
C#
VB.NET
C++.NET
Compiler
Compiler
Compiler
Managed Assembly
IL Code
Code
Assembly
IL Code
Assembly
IL Code
Source
Code
JIT Compiler
Native Code
Operating System
RNSIT Bengaluru
Unmanaged
Code
Assembly:
HelloWorld.exe
(3072
Byte!)
RNSIT Bengaluru
16
RNSIT Bengaluru
17
CLR
.NET
Source
Code
.NET Compiler
*.DLL or *.EXE
(CIL, metadata, manifest)
mscoree.dll
Class Loader
Base Class
Libraries
(mscorlib.dll)
Jitter
Platform
Specific code
Execute
.NET Execution Engine
Managed Code
19
Source Code
Language independent
within .Net Framework
CPU
RNSIT Bengaluru
Output
Unmanaged Code
20
MSIL Code
Language independent
within .Net Framework
JIT(Just-in-Time) Compiler
Executable Code
RNSIT Bengaluru
Output
Memory Management
21
memory management.
CLR uses the garbage collector to
manage the allocation and
release of the memory for an application.
Advantages:
For the developers since it reduces the burden of writing codes
to manage memory while developing managed applications.
RNSIT Bengaluru
types at runtime.
It is an integral part of the runtime for supporting crosslanguage communication.
The common type system performs the following functions:
enables cross-language integration, type safety, and highperformance code execution.
provides an object-oriented model for implementation of
many programming languages.
defines rules that every language must follow which runs
under .NET framework like C#, VB.NET, F# etc. can interact
with each other.
By Prof. Suma M G, Dept. of MCA
RNSIT Bengaluru
Cont
23
RNSIT Bengaluru
RNSIT Bengaluru
Metadata
25
RNSIT Bengaluru
Assemblies
26
RNSIT Bengaluru
Single assembly
27
RNSIT Bengaluru
RNSIT Bengaluru
RNSIT Bengaluru
Manifest
30
RNSIT Bengaluru
31
RNSIT Bengaluru
32
RNSIT Bengaluru
RNSIT Bengaluru
Cont.
34
RNSIT Bengaluru
same publisher that created the version the application was built with
Facilitates integrity check, which ensures that the contents of the
assembly do not change since its last build.
By Prof. Suma M G, Dept. of MCA
RNSIT Bengaluru
private assembly.
Assemblies that are placed in the Global Assembly cache so
that they can be used by multiple applications, then it is called
as a shared assembly.
RNSIT Bengaluru
RNSIT Bengaluru
Cont.
38
heap.
is made up of a hierarchy of namespaces that expose classes,
structures, interfaces, enumerations, and delegates.
Example: System.Data.SqlClient
More than 20,000 classes in FCL
RNSIT Bengaluru
Cont
39
Components
Windows Forms
ASP.NET and
ASP.NET AJAX
Meaning
RNSIT Bengaluru
Cont
Components
ADO.NET
40
Meaning
Windows
WorkFlow
Foundation
Window
Presentation
Foundation
Windows
Communication
Foundation
Windows
CardSpace
RNSIT Bengaluru