0% found this document useful (0 votes)
55 views21 pages

CH 2 Intro To DOT Net Framework

You give a good knowledge yo the student and to me adjests your self . Educational Background Elementary :seladingay(1-8),North shewa zone,deberebrhan district, from 1997 to 2004 E.C High school :seladingay General Secondary school (9-10), North shewa zone,deberebrhan district, from 2004-2006 Preparatory school: seladingay secondary school (11-12) North shewa zone,deberebrhan district, from 2007-2008 BSc Degree: Wollo University Kombolcha Institute Of Technology(KIOT) Collage Of Infor
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
55 views21 pages

CH 2 Intro To DOT Net Framework

You give a good knowledge yo the student and to me adjests your self . Educational Background Elementary :seladingay(1-8),North shewa zone,deberebrhan district, from 1997 to 2004 E.C High school :seladingay General Secondary school (9-10), North shewa zone,deberebrhan district, from 2004-2006 Preparatory school: seladingay secondary school (11-12) North shewa zone,deberebrhan district, from 2007-2008 BSc Degree: Wollo University Kombolcha Institute Of Technology(KIOT) Collage Of Infor
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 21

Chapter Two

Introduction to
Microsoft .NET Framework
and Visual Studio .NET IDE
Basics of Microsoft .NET Framework
• The .Net framework is a software
development platform developed by
Microsoft.
• The framework can be used to create both
form-based application and web-based
application.
• The framework support programming
languages like VB.Net, C# and F#.
.Net Framework Architecture
Language •Winforms
•ASP.Net
•ADO.Net

Library •Framework Class Library

CLR •Common Language Runtime


Sub-parts of the .Net
framework
Net CLR (Common Language Runtime)

• Also called .Net runtime


• It is a framework layer that resides above the
OS and handles the execution of all .Net
applications
• Our programs don’t directly communicate
with the OS but go through the CLR
Net CLR …

Our .Net Applications


(WinForms, Web Apps, Web Services)

Data (ADO.Net) and XML Library

Framework Class Library (FCL)


(IO, Streams, Sockets, Security,
Reflection,UI)
CLR
(Debugger, Type Checking, JIT, exceptions, GC)
Microsoft Intermediate Language (MSIL)
Code
• An intermediate code that is generated when
any .Net compliant language source file is
compiled
• MSIL code is OS and HW independent
• MSIL code is similar for each .Net language
• Upon program execution, MSIL code is
converted to system dependant binary
executable code (native code)
MSLI Code…
• Diagrammatically:

Language
Code in any .NET compiler
Language MSIL code
Compile
time JIT compiler
Run time

Executable Native code


Just in Time Compilers (JITers)
• Compile the IL code to native code (.exe
or .dll) when desired
The Framework Class Library (FCL)
• These are thousands of classes to provide
access to Windows API and common functions
like String Manipulation, Common Data
Structures, IO, Streams, Threads, Security,
Network Programming, Windows
Programming, Web Programming, Data
Access, etc
The Common Language Specification(CLS)

• A small set of specifications that each of


the .Net compliant languages should meet
• The specifications include:
– There shouldn’t be any global function declaration
– No pointers
– No multiple inheritance
• If you keep your code within the CLS
boundary, your code is guaranteed to be
usable in any other .Net language
The Common Type System (CTS)
• A set of standards in .Net that defines the
basic data types that IL understands
• Each .Net compliant language should map its
data types to these standard data types
• For example, CTS defines a type Int32, an
integral data type of 32 bits which is mapped
by C# through int and VB.Net through its
Integer data type
Garbage Collection (GC)
• It checks for un-referenced, dynamically
allocated memory space
• If it finds some data that is no longer
referenced by any variable/reference, it re-
claims it and returns it to the OS
• The presence of a standard GC frees the
programmer from keeping track of dangling
data
The Visual Studio.Net IDE
• IDE= Integrated Development Environment
• An IDE from Microsoft for developing .Net based applications in supported
programming languages usually in C#
• Can be used to develop
– Desktop applications
– ASP Web applications
– Mobile applications
– XML Web services
• Compliant languages include:
– Visual C#.Net
– Visual Basic.Net
– Visual C++.Net
– Jscript.Net
– J#.Net
– ASP.Net
The Visual Studio.Net IDE…
• Editions of VS 2019
– Visual Studio 2019 Community Edition
– Visual Studio 2019 Professional Edition
– Visual Studio 2019 Express Edition
Visual Studio IDE-sample
SDI vs MDI
• The SDI and MDI forms are the interface
design for document handling within a single
Windows appliaction
• SDI= Single Document Interface
• MDI= Multiple Document Interface
MDI
• A multiple document interface is one that
allows viewing multiple windows within a
large window
• Any windows can become an MDI parent, if
you set the IsMdiContainer property to True.
SDI
• A single document interface is one where all
Windows appear independently of one
another without the unification of a single
parent window
SDI Applications
• can manipulate only one document at a time.
• notepad is an example of an SDI application
MDI Applications
• Multiple-document interface (MDI) applications
enable you to display multiple documents at the
same time, with each document displayed in its own
window. MDI applications often have a Window
menu item with submenus for switching between
windows or documents.
– can display multiple child windows inside them.
• MDI applications often have a Window menu item with
submenus for switching between windows or documents.
• Example:Visual Studio Environment

You might also like