0% found this document useful (0 votes)
3 views43 pages

Dotnet Lecture 1

.NET is a programming framework developed by Microsoft that allows for the creation of applications in various programming languages, emphasizing interoperability, code reusability, and security. It includes components such as the Common Language Runtime (CLR) and the .NET Framework Class Library (FCL), which facilitate resource management and deployment. The framework supports multiple versions and addresses issues like versioning conflicts and DLL hell through side-by-side execution.

Uploaded by

t9048328
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views43 pages

Dotnet Lecture 1

.NET is a programming framework developed by Microsoft that allows for the creation of applications in various programming languages, emphasizing interoperability, code reusability, and security. It includes components such as the Common Language Runtime (CLR) and the .NET Framework Class Library (FCL), which facilitate resource management and deployment. The framework supports multiple versions and addresses issues like versioning conflicts and DLL hell through side-by-side execution.

Uploaded by

t9048328
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

DOT NET Technology

(IT352)

Delivered By:
Prof. Priyank Bhojak
Assistant Professor,
IT Department
BVM Engineering College, [Link]
History

Java has been popular in mid ninety


 Platform Independent
 Open Source policy
History

 Microsoft started working on a project known as


Next Generation Windows Services (NGWS).
 3 years time invested to build it up.
 Project is now called as .NET
Features

 Interoperability between applications in diff language


- integration of business logic
 Code Reusability
 Code specialization
 Resource Management
 Multiple programming Language Support
 Security
 Deployment
 Administration of programs developed in different
programming Language.
.NET

 Software platform
 Language neutral

.NET is not a language (Runtime and a library for


writing and executing written programs in any
compliant language)
.NET

 .NET is programming framework created by


Microsoft, for Developer can use to create
application more easily

 .Net is a new framework for developing web-based


and window based applications within the Microsoft
environment.

 Its runs on different versions of windows operating


system.
Basic Functioning
DOT NET Frameworks

DOT NET FRAMEWORK Year IDE


.NET Framework 1.0 13th Feb 2002 Visual Studio 2002
.NET Framework 1.1 2003 Visual Studio 2003
.NET Framework 2.0 7th Nov 2005 Visual Studio 2005
.NET Framework 3.0 (WinFx) 6th Nov 2006 …………….
.NET Framework 3.5 19th Nov 2008 Visual Studio 2008
.NET Framework 4.0 12th April 2010 Visual Studio 2010

.NET Framework 4.8 2019


(Final Version) Visual Studio 2019 (16.3)
Version number CLR version Release date
1.0 1.0 2002-02-13
1.1 1.1 2003-04-24
2.0 2.0 2005-11-07
3.0 2.0 2006-11-06
3.5 2.0 2007-11-19
4.0 4 2010-04-12
4.5 4 2012-08-15
4.5.1 4 2013-10-17
4.5.2 4 2014-05-05
4.6 4 2015-07-20
4.6.1 4 2015-11-17
4.6.2 4 2016-08-02
4.7 4 2017-04-05
4.7.1 4 2017-10-17
DOT NET FRAMEWORK
.NET Framework
Benefits Of .NET Framework

 Consistent Programming model


 Cross Platform Support
 Language interpretability
 Automatic management of resource
 Ease of deployment
.NET Framework component

 Common Language Specification (CLS)


 Common Type System (CTS)
 .NET Framework Class Library.(FCL)
 Common Language Runtime (CLR)
 Common Language Infrastructure (CLI)
Common Language Specification (CLS)
Common Type System (CTS)
.NET Framework Class Library.(FCL)
Common Language Runtime (CLR)
Traditional System
Java
Common Language Runtime (CLR)

CLR works like a virtual machine in executing all


languages.
CLR called as runtime, CLR(JIT)
CLR Example
MSIL
CLR Components
 Class Loader  Loads classes of DOT NET
 JIT Compiler  Converts MSIL into Native Code
 Code Manager  Manages the resources required by
code at time of execution
 Garbage Collector  Automatic Memory Management
 Security Engine  Enforces security using Code Access
Security
 Type Checker Strict type Checking
 Thread Execution Support  Provides Multithreading
 Exception Manager  Mechanism to handle runtime
exception
 Debugger  Provides Debug Engine
 Base Class Library  Library that provides data types to
DOT NET.
Managed Code vs Unmanaged Code
Assembly
 CLR want to execute the code besides the
functional code it also required information like
version information, permission provide, security
checks, and so on CLR need that’s information to
run the code This program unit is called Assembly.
.NET Assembly
Major Components of Assembly
List of Information Stored in Assembly Manifest

 Assembly Name  Name of Assembly


 Version Number  Major version ,Minor version,
revision and build version number
 Culture Language that assembly supports
 List of all files in assembly
 Type reference information
 Information on referenced assemblies
 Assemblies have assembly attributes
 Trademark, product, company and copyright

By: Mr. Kanu G Patel


Private And Shared Assemblies

Private Shared

Used by only single Used by Multiple


Application Applications
Example:- DLL containing Example :- DLL kept at
info of business logic GAC using [Link]
Name Spaces
 Huge collection of classes available in form of BCL.
 Classes are grouped in form of namespaces.
 Namespace is collection of classes and interfaces
related to each other.
 Like package in JAVA
 Solves problem of name conflict.
 System is root namespace in .NET
How to create Namespace?
Namespace

 We can create alias of namespace.


 Syntax: using alias-name=namespace-name;
List of NameSpaces
Namespace Description
System commonly used data types, events and exceptions
[Link] Collection of objects such as list, queues, hash table
arrays
[Link] Handle data from different data sources
[Link] Debug your application step by step
[Link] Draw on a control or image
[Link] Culture related information
[Link] Data access with files
[Link] Interfaces for protocols used on internet
[Link] Return information regarding type, method and fields
[Link] Support structure of CLR security system
[Link] Multithreaded applications
[Link] Support browser server communication
[Link] Integration with XML
Garbage Collection
Garbage Collection

A B C
Displaying A,B ,C object in Managed
Heap
A C

Displaying memory heap structure after collecting an object by garbage


collector
A C

Displaying memory structure after compact


GC conti.
Versioning and Side by side execution

 Few of the applications built in a specific version is


unable to run on some other version
 Ex :- API features added in version 1.1 do not work
with version 1.0
 This is called versioning problem.
 Can be removed by side by side execution.
 Side by Side execution is ability to store and execute
multiple version in one computer
Side By Side Exe.
End to DLL Hell
 Set of problems caused when multiple applications
try to share a common component.
 Microsoft has introduced .NET to end this problem.
 In .NET there is a concept of run once run forever
Console Application
Thank you
By: Prof. Priyank Bhojak

You might also like