introduction to .net programming

8
.NET An Introduction to Microsoft .NET Platform http://www.livetolearn.in

Upload: karthikeyan-mkr

Post on 17-Dec-2014

10.408 views

Category:

Education


1 download

DESCRIPTION

Introduction to .NETbyhttp://www.livetolearn.in

TRANSCRIPT

Page 1: Introduction to .NET Programming

http://www.livetolearn.in

.NETAn Introduction to Microsoft .NET Platform

Page 2: Introduction to .NET Programming

http://www.livetolearn.in

.NET It is not / not only a package or language It is called as .NET Environment or Platform When .NET was introduced it came with several

languages. VB.NET, C#, COBOL and Perl, etc. The site DotNetLanguages.Net says 44

languages are supported. Object oriented language High security – because it uses clauses and

objects as their building blocks Portability – Runs on any operating system

Page 3: Introduction to .NET Programming

http://www.livetolearn.in

BASIC, FORTRON, COBOL, C, C++ languages are converted in to Machine Level Language (Executable code) at the time of executing, which is executed directly in the operating system.

But, programs developed in .NET are converted into MSIL (Microsoft Intermediate Language) which contains Binary Codes.

Command in the MSIL (Assembly Language) will be converted into executables on any operating system.

We can use one language in another language in under .NET platform. For e.g. VB.NET in ASP.NET

The languages that are used in the .NET platform has a general class Library. So all the program statements written in the .NET are called as Managed Code

Page 4: Introduction to .NET Programming

http://www.livetolearn.in

Benefits of Managed Code Memory Management Debugging Support Security Version Control Mixed Language Interaction

Page 5: Introduction to .NET Programming

http://www.livetolearn.in

Memory Management In C, C++ Languages we need to allocate some

memory before using it and we need to de-allocate after the use.

In .NET platform it is automated

Debugging Support

All Errors are displayed (accurately) in a separate Debugging window

Page 6: Introduction to .NET Programming

http://www.livetolearn.in

Security & Version Control .NET program uses clauses and objects

as their building blocks We can install multiple .NET framework

versions in a one system. Required Framework version will be

automatically selected by a .NET program. We can include more than one .NET

language in a program. It is called as Mixed Language Interaction.

Page 7: Introduction to .NET Programming

http://www.livetolearn.in

.NET Architecture

1. Common Language Run Time (CLR)

2. Common Type System (CTS)

3. Class Library (CL) CLR Engine is common to all .Net languages. CLR has common set of tools for all languages When a compiler compiles for the CLR, this

code is said to be managed code. When a program runs in .net platform CLR

converts into MSIL. MSIL files’ extension “.dll”

Page 8: Introduction to .NET Programming

http://www.livetolearn.in

The Just In Time (JIT) Compiler in the CLR, converts the MSIL Assembly program into executables that are run in any operating system.

All data types included in the program are stored in CTS (Common Type System).

All the required classes are included in the Class Library.

Classes to handle different types of data such as Numbers, Text, Images, Files are included in the Class Library.