SlideShare a Scribd company logo
JIGAR JOBANPUTRA
SRK INSTITUTE OF MANAGEMENT
AND COMPUTER EDUCATION
UNIT-1
INTRODUCTION TO
VB.NET
JIGAR JOBANPUTRA (J.J.)
› C Language allows you the concept of
the procedural programming
language.
› Execution starts with the first line of the
main() function and then follows the
predefined path through the
application calling procedures as
needed.
› In the event driven application the
code doesn’t follow the predefined
path.
EVENT-DRIVEN MODEL
JIGAR JOBANPUTRA (J.J.)
› Everything is depended upon an event.
› Event driven programming is associated
with properties, methods and events.
› In daily routine we are using so many
objects like TV , ICE-CREAM , MOBILE ,
BIKE etc.
› Each and every object has properties ,
methods and events
› For e.g. cost of laptop, company , color
, size , RAM, HARD DISK are properties of
laptop.
Cont…
JIGAR JOBANPUTRA (J.J.)
› Property means characteristics of
anything
› Each and every object identified by its
characteristics.
› Events are reaction of any action
› Methods are something like function
doing something.
Cont…
JIGAR JOBANPUTRA (J.J.)
› Visual studio .net is complete package
of development tools for developing
web applications, desktop application,
mobile applications etc.
› Visual studio .net supports 60 languages
for developing software. Some
common languages are visual
basic.net, visual c++, c# .Net, J#
.Net.
What is visual studio.net?
JIGAR JOBANPUTRA (J.J.)
› “Microsoft .NET is based on the .NET
Framework, which consists of two major
components: the Common Language
Runtime (CLR) and an extensive set of
Framework Class Libraries (FCL). The CLR
defines a common programming
model and a standard type system for
cross-platform, multi-language
development.”
Cont…
JIGAR JOBANPUTRA (J.J.)
› .NET supports VB, C# (C-sharp), C++, J# (Java 1.2), etc.
CONT…
code.vb code.cs code.cp
p
...
Development Tools
app.exe
FCL
JIGAR JOBANPUTRA (J.J.)
› Compiled .NET apps run on any supported
platform:
.NET is cross-platform
APP.exe
?
Win64 Win32
(XP,2K,98)
WinCE
JIGAR JOBANPUTRA (J.J.)
› Cross-platform execution realized in two
ways:
1.apps are written against Framework Class
Library (FCL), not underlying OS
2.compilers generate generic assembly
language which must be executed by the
Common Language Runtime (CLR)
How is cross-platform
achieved?
JIGAR JOBANPUTRA (J.J.)
› Framework Class Library
– 1000's of predefined classes
– common subset across all platforms &
languages
– networking, database access, XML
processing, GUI, Web, etc.
› Goal?
– FCL is a portable operating system
FCL
JIGAR JOBANPUTRA (J.J.)
› RICH SET OF CLASSES: -
– Visual studio.net contains hundreds of
classes and namespaces that providing
variety of functionality in application
– For example to work with database we
need to include system.data namespace
FEATURES OF .NET
JIGAR JOBANPUTRA (J.J.)
› Object oriented programming system
– Visual studio .NET provides a fully object
oriented environment.
– Visual studio .NET supports oops concepts
Cont…
JIGAR JOBANPUTRA (J.J.)
› In- built memory management:
– Visual studio .NET supports handling memory
on its own.
– The garbage collector take responsibility for
freeing up unused objects at regular
intervals.
Cont…
JIGAR JOBANPUTRA (J.J.)
› Multi – language and Multi-device support
– Visual studio .NET supports multiple language
– This means that if your friend is good in c# and
you are comfortable with VB.
– So you can work on the same project using
different languages.
– The beauty of multi language supports lies in the
fact that even though the syntax of each
language is different the basic environment of
developing software is same.
– Visual studio .NET supports multi-device
Cont…
JIGAR JOBANPUTRA (J.J.)
› Faster and easy development of web
application-
– ASP.NET is useful for developing dynamic
and database related web applications
– ASP.NET contains rich and faster
development controls for web applications
Cont…
JIGAR JOBANPUTRA (J.J.)
› XML Supports-
– Visual studio .NET supports for writing ,
manipulation and transforming XML
DOCUMETNS
Cont…
JIGAR JOBANPUTRA (J.J.)
› Ease of development and
configuration
– Deploying windows application especially
that use COM components have always
been a tedious task since .NET does not
require any registration as such, much of
the deployment is simplified
Cont…
JIGAR JOBANPUTRA (J.J.)
› How .NET works?
HOW .NET WORKS?
Operating System + Hardware
.NET Framework
.NET Application
JIGAR JOBANPUTRA (J.J.)
Base Class Library
Common Language Specification
Common Language Runtime
ADO.NET: Data and XML
VB VC++ VC#
VisualStudio.NET
ASP.NET: Web Services
and Web Forms
JScript …
Windows
Forms
Framework, Languages, And Tools
JIGAR JOBANPUTRA (J.J.)
› The .NET framework exposes numerous classes to
the developer. These classes allow the
development of rich client applications and Web
based applications alike. In the above slide these
classes have been divided into 4 areas.
› ASP.NET provides the core Web infrastructure such
as Web Forms for UI based development and Web
Services for programmatic interface development,
› User interface development on the Windows
platform can be done using Windows Forms
› ADO.NET and XML provide the functionality for
data access.
› Finally, the core base classes provide infrastructure
services such as security, transaction management
etc.
Cont…
JIGAR JOBANPUTRA (J.J.)
•Common Language Runtime
• Common, secure execution environment.
• It is the execution engine for .NET framework
• It is the heart and backbone of the .NET
• It provides an infrastructure for running
program and allows them to communicate
with other parts of the .NET framework
• It provides the following facilities
• Code loading and execution
• Application memory , isolation
• Verification of type safety
• Conversion to IL to native code
CONT…
JIGAR JOBANPUTRA (J.J.)
› Access to metadata
› Managing memory for managed objects
› Enforcement of code access security
› Exception handling
Cont…
JIGAR JOBANPUTRA (J.J.)
› CTS allows programs written in different
programming language to easily share
information
› A class written in C# should be
equivalent to a class written in VB.NET
› Languages must agree on the
meanings of these concepts before
they can integrate with each other.
What is Common Type System?
JIGAR JOBANPUTRA (J.J.)
› CTS provides cross language integration
› The Common type system supports two
general categories of types:
– Value types
– Reference types
It store directly data on stack. In-built data
type.
e.g. dim a as integer
store a reference to the values memory
address, and allocate on heap.
Cont…
JIGAR JOBANPUTRA (J.J.)
› CLS includes basic language features
needed by almost all the applications.
› It serves as a guide for library writers
and compiler writers
› The common language specifications is
a subset of the common type system
› The common language specification is
also important to application
developers who are writing code that
will be used by other developers.
What is CLS(common language
specifications)?
JIGAR JOBANPUTRA (J.J.)
› Meta data stored within assembly
› .NET records information about
compiled classes as metadata
› Meta data means data about data
› A .NET language compiler will generate
the metadata and store this is in
assembly.
› Meta data is nothing but a description
of every namespace, class , method ,
property etc.
What is metadata?
JIGAR JOBANPUTRA (J.J.)
› CLR uses this metadata to
– Locate classes
– Load classes
– Generate native code
– Provide security
Cont..
JIGAR JOBANPUTRA (J.J.)
› As mentioned above .NET framework
class library is collection of namespaces
› Namespace is logical naming scheme
for types that have related
functionality.
› Namespace means nothing but a
logical container or partition
› It is like drives of the computer
› The drives are logical partitions of hard
disk c: d: e: f: are used for unique
identification for particular file.
What is namespace?
JIGAR JOBANPUTRA (J.J.)
› System- contains fundamental classes
and base classes
› System.io- classes for reading and
writing data in file
› System.xml- classes work with xml
› System.windows.forms- contains classes
for window-based applications
› System.data- contains classes for the
database connection
Common namespaces
JIGAR JOBANPUTRA (J.J.)
› An assembly is the basic building block
of .NET application
› The assemblyinfo.vb file contains
information about the assembly its
version number, dependencies,
product , copyright , trademark,
description etc.
What is Assemblyinfo.vb file?
JIGAR JOBANPUTRA (J.J.)
Thank you
JIGAR JOBANPUTRA (J.J.)

More Related Content

What's hot (20)

Presentation on Core java
Presentation on Core javaPresentation on Core java
Presentation on Core java
 
Introduction to Java Programming Language
Introduction to Java Programming LanguageIntroduction to Java Programming Language
Introduction to Java Programming Language
 
Features of java
Features of javaFeatures of java
Features of java
 
Basic of Java
Basic of JavaBasic of Java
Basic of Java
 
INTRODUCTION TO JAVA APPLICATION
INTRODUCTION TO JAVA APPLICATIONINTRODUCTION TO JAVA APPLICATION
INTRODUCTION TO JAVA APPLICATION
 
core java
core javacore java
core java
 
Chapter no 1
Chapter no 1Chapter no 1
Chapter no 1
 
E sampark with c#.net
E sampark with c#.netE sampark with c#.net
E sampark with c#.net
 
java concepts
java conceptsjava concepts
java concepts
 
Common language runtime clr
Common language runtime clrCommon language runtime clr
Common language runtime clr
 
Code, ci, infrastructure - the gophers way
Code, ci, infrastructure - the gophers wayCode, ci, infrastructure - the gophers way
Code, ci, infrastructure - the gophers way
 
Java Introduction
Java IntroductionJava Introduction
Java Introduction
 
Embedded Linux on ARM
Embedded Linux on ARMEmbedded Linux on ARM
Embedded Linux on ARM
 
Java vs .net
Java vs .netJava vs .net
Java vs .net
 
1 introduction to java technology
1 introduction to java technology1 introduction to java technology
1 introduction to java technology
 
Oodb
OodbOodb
Oodb
 
Introduction to Java -unit-1
Introduction to Java -unit-1Introduction to Java -unit-1
Introduction to Java -unit-1
 
Java presentation
Java presentationJava presentation
Java presentation
 
Bn1005 demo ppt core java
Bn1005 demo ppt core javaBn1005 demo ppt core java
Bn1005 demo ppt core java
 
Features of java
Features of javaFeatures of java
Features of java
 

Similar to Unit 1(sem-iv) (20)

Introduction to .net
Introduction to .netIntroduction to .net
Introduction to .net
 
dot net technology
dot net technologydot net technology
dot net technology
 
Concepts of Asp.Net
Concepts of Asp.NetConcepts of Asp.Net
Concepts of Asp.Net
 
Java vs .Net
Java vs .NetJava vs .Net
Java vs .Net
 
1 get started with c#
1   get started with c#1   get started with c#
1 get started with c#
 
Net overview
Net overviewNet overview
Net overview
 
.Net overview by cetpa
.Net overview by cetpa.Net overview by cetpa
.Net overview by cetpa
 
.Net overview
.Net overview.Net overview
.Net overview
 
.Net introduction by Quontra Solutions
.Net introduction by Quontra Solutions.Net introduction by Quontra Solutions
.Net introduction by Quontra Solutions
 
.Net overview
.Net overview.Net overview
.Net overview
 
.net framework
.net framework.net framework
.net framework
 
Net overview
Net overviewNet overview
Net overview
 
.Net overview
.Net overview.Net overview
.Net overview
 
.Net Overview
.Net Overview.Net Overview
.Net Overview
 
DOT Net overview
DOT Net overviewDOT Net overview
DOT Net overview
 
.Net overviewrajnish
.Net overviewrajnish.Net overviewrajnish
.Net overviewrajnish
 
Dataflow-based heterogeneous code generator for IoT applications
Dataflow-based heterogeneous code generator for IoT applicationsDataflow-based heterogeneous code generator for IoT applications
Dataflow-based heterogeneous code generator for IoT applications
 
.Net framework
.Net framework.Net framework
.Net framework
 
Net Framework overview
Net Framework overviewNet Framework overview
Net Framework overview
 
Modified.net overview
Modified.net overviewModified.net overview
Modified.net overview
 

More from Jigarthacker

More from Jigarthacker (13)

File mangement
File mangementFile mangement
File mangement
 
Java session14
Java session14Java session14
Java session14
 
Java session13
Java session13Java session13
Java session13
 
Java session5
Java session5Java session5
Java session5
 
Java session4
Java session4Java session4
Java session4
 
Java session3
Java session3Java session3
Java session3
 
Java session2
Java session2Java session2
Java session2
 
Computer networks
Computer networksComputer networks
Computer networks
 
Unit 2
Unit 2Unit 2
Unit 2
 
Unit 2
Unit 2Unit 2
Unit 2
 
Unit 1
Unit 1Unit 1
Unit 1
 
C programming
C programmingC programming
C programming
 
Basic object oriented approach
Basic object oriented approachBasic object oriented approach
Basic object oriented approach
 

Recently uploaded

Salient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptxSalient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptxakshayaramakrishnan21
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXMIRIAMSALINAS13
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleCeline George
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxbennyroshan06
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxEduSkills OECD
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptxJosvitaDsouza2
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptSourabh Kumar
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdfCarlosHernanMontoyab2
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasGeoBlogs
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfQucHHunhnh
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPCeline George
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativePeter Windle
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonSteve Thomason
 
Benefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational ResourcesBenefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational Resourcesdimpy50
 
plant breeding methods in asexually or clonally propagated crops
plant breeding methods in asexually or clonally propagated cropsplant breeding methods in asexually or clonally propagated crops
plant breeding methods in asexually or clonally propagated cropsparmarsneha2
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfbu07226
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePedroFerreira53928
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaasiemaillard
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsCol Mukteshwar Prasad
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationDelapenabediema
 

Recently uploaded (20)

Salient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptxSalient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptx
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
Benefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational ResourcesBenefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational Resources
 
plant breeding methods in asexually or clonally propagated crops
plant breeding methods in asexually or clonally propagated cropsplant breeding methods in asexually or clonally propagated crops
plant breeding methods in asexually or clonally propagated crops
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 

Unit 1(sem-iv)

  • 1. JIGAR JOBANPUTRA SRK INSTITUTE OF MANAGEMENT AND COMPUTER EDUCATION UNIT-1 INTRODUCTION TO VB.NET JIGAR JOBANPUTRA (J.J.)
  • 2. › C Language allows you the concept of the procedural programming language. › Execution starts with the first line of the main() function and then follows the predefined path through the application calling procedures as needed. › In the event driven application the code doesn’t follow the predefined path. EVENT-DRIVEN MODEL JIGAR JOBANPUTRA (J.J.)
  • 3. › Everything is depended upon an event. › Event driven programming is associated with properties, methods and events. › In daily routine we are using so many objects like TV , ICE-CREAM , MOBILE , BIKE etc. › Each and every object has properties , methods and events › For e.g. cost of laptop, company , color , size , RAM, HARD DISK are properties of laptop. Cont… JIGAR JOBANPUTRA (J.J.)
  • 4. › Property means characteristics of anything › Each and every object identified by its characteristics. › Events are reaction of any action › Methods are something like function doing something. Cont… JIGAR JOBANPUTRA (J.J.)
  • 5. › Visual studio .net is complete package of development tools for developing web applications, desktop application, mobile applications etc. › Visual studio .net supports 60 languages for developing software. Some common languages are visual basic.net, visual c++, c# .Net, J# .Net. What is visual studio.net? JIGAR JOBANPUTRA (J.J.)
  • 6. › “Microsoft .NET is based on the .NET Framework, which consists of two major components: the Common Language Runtime (CLR) and an extensive set of Framework Class Libraries (FCL). The CLR defines a common programming model and a standard type system for cross-platform, multi-language development.” Cont… JIGAR JOBANPUTRA (J.J.)
  • 7. › .NET supports VB, C# (C-sharp), C++, J# (Java 1.2), etc. CONT… code.vb code.cs code.cp p ... Development Tools app.exe FCL JIGAR JOBANPUTRA (J.J.)
  • 8. › Compiled .NET apps run on any supported platform: .NET is cross-platform APP.exe ? Win64 Win32 (XP,2K,98) WinCE JIGAR JOBANPUTRA (J.J.)
  • 9. › Cross-platform execution realized in two ways: 1.apps are written against Framework Class Library (FCL), not underlying OS 2.compilers generate generic assembly language which must be executed by the Common Language Runtime (CLR) How is cross-platform achieved? JIGAR JOBANPUTRA (J.J.)
  • 10. › Framework Class Library – 1000's of predefined classes – common subset across all platforms & languages – networking, database access, XML processing, GUI, Web, etc. › Goal? – FCL is a portable operating system FCL JIGAR JOBANPUTRA (J.J.)
  • 11. › RICH SET OF CLASSES: - – Visual studio.net contains hundreds of classes and namespaces that providing variety of functionality in application – For example to work with database we need to include system.data namespace FEATURES OF .NET JIGAR JOBANPUTRA (J.J.)
  • 12. › Object oriented programming system – Visual studio .NET provides a fully object oriented environment. – Visual studio .NET supports oops concepts Cont… JIGAR JOBANPUTRA (J.J.)
  • 13. › In- built memory management: – Visual studio .NET supports handling memory on its own. – The garbage collector take responsibility for freeing up unused objects at regular intervals. Cont… JIGAR JOBANPUTRA (J.J.)
  • 14. › Multi – language and Multi-device support – Visual studio .NET supports multiple language – This means that if your friend is good in c# and you are comfortable with VB. – So you can work on the same project using different languages. – The beauty of multi language supports lies in the fact that even though the syntax of each language is different the basic environment of developing software is same. – Visual studio .NET supports multi-device Cont… JIGAR JOBANPUTRA (J.J.)
  • 15. › Faster and easy development of web application- – ASP.NET is useful for developing dynamic and database related web applications – ASP.NET contains rich and faster development controls for web applications Cont… JIGAR JOBANPUTRA (J.J.)
  • 16. › XML Supports- – Visual studio .NET supports for writing , manipulation and transforming XML DOCUMETNS Cont… JIGAR JOBANPUTRA (J.J.)
  • 17. › Ease of development and configuration – Deploying windows application especially that use COM components have always been a tedious task since .NET does not require any registration as such, much of the deployment is simplified Cont… JIGAR JOBANPUTRA (J.J.)
  • 18. › How .NET works? HOW .NET WORKS? Operating System + Hardware .NET Framework .NET Application JIGAR JOBANPUTRA (J.J.)
  • 19. Base Class Library Common Language Specification Common Language Runtime ADO.NET: Data and XML VB VC++ VC# VisualStudio.NET ASP.NET: Web Services and Web Forms JScript … Windows Forms Framework, Languages, And Tools JIGAR JOBANPUTRA (J.J.)
  • 20. › The .NET framework exposes numerous classes to the developer. These classes allow the development of rich client applications and Web based applications alike. In the above slide these classes have been divided into 4 areas. › ASP.NET provides the core Web infrastructure such as Web Forms for UI based development and Web Services for programmatic interface development, › User interface development on the Windows platform can be done using Windows Forms › ADO.NET and XML provide the functionality for data access. › Finally, the core base classes provide infrastructure services such as security, transaction management etc. Cont… JIGAR JOBANPUTRA (J.J.)
  • 21. •Common Language Runtime • Common, secure execution environment. • It is the execution engine for .NET framework • It is the heart and backbone of the .NET • It provides an infrastructure for running program and allows them to communicate with other parts of the .NET framework • It provides the following facilities • Code loading and execution • Application memory , isolation • Verification of type safety • Conversion to IL to native code CONT… JIGAR JOBANPUTRA (J.J.)
  • 22. › Access to metadata › Managing memory for managed objects › Enforcement of code access security › Exception handling Cont… JIGAR JOBANPUTRA (J.J.)
  • 23. › CTS allows programs written in different programming language to easily share information › A class written in C# should be equivalent to a class written in VB.NET › Languages must agree on the meanings of these concepts before they can integrate with each other. What is Common Type System? JIGAR JOBANPUTRA (J.J.)
  • 24. › CTS provides cross language integration › The Common type system supports two general categories of types: – Value types – Reference types It store directly data on stack. In-built data type. e.g. dim a as integer store a reference to the values memory address, and allocate on heap. Cont… JIGAR JOBANPUTRA (J.J.)
  • 25. › CLS includes basic language features needed by almost all the applications. › It serves as a guide for library writers and compiler writers › The common language specifications is a subset of the common type system › The common language specification is also important to application developers who are writing code that will be used by other developers. What is CLS(common language specifications)? JIGAR JOBANPUTRA (J.J.)
  • 26. › Meta data stored within assembly › .NET records information about compiled classes as metadata › Meta data means data about data › A .NET language compiler will generate the metadata and store this is in assembly. › Meta data is nothing but a description of every namespace, class , method , property etc. What is metadata? JIGAR JOBANPUTRA (J.J.)
  • 27. › CLR uses this metadata to – Locate classes – Load classes – Generate native code – Provide security Cont.. JIGAR JOBANPUTRA (J.J.)
  • 28. › As mentioned above .NET framework class library is collection of namespaces › Namespace is logical naming scheme for types that have related functionality. › Namespace means nothing but a logical container or partition › It is like drives of the computer › The drives are logical partitions of hard disk c: d: e: f: are used for unique identification for particular file. What is namespace? JIGAR JOBANPUTRA (J.J.)
  • 29. › System- contains fundamental classes and base classes › System.io- classes for reading and writing data in file › System.xml- classes work with xml › System.windows.forms- contains classes for window-based applications › System.data- contains classes for the database connection Common namespaces JIGAR JOBANPUTRA (J.J.)
  • 30. › An assembly is the basic building block of .NET application › The assemblyinfo.vb file contains information about the assembly its version number, dependencies, product , copyright , trademark, description etc. What is Assemblyinfo.vb file? JIGAR JOBANPUTRA (J.J.)