SlideShare a Scribd company logo
1 of 28
Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 1
Department of Information Technology
CE308.01: ADVANCED
PROGRAMMING USING .NET
FRAMEWORK
Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 2
Department of Information Technology
Credits and Hours:
Teaching
Scheme
Theory Practical Total Credit
Hours/week 2 4 6
4
Marks 100 100 200
Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 3
Department of Information Technology
Course Outline
Sr
No.
Title of the unit
1 Introduction to .NET framework
2 C# - The Basics, Console Applications in C#
3 C# .NET
4 ADO.NET
5 Windows Forms and Controls in detail
6 Visual Inheritance in C#.NET
7 Mastering Windows Forms
8 ASP.NET
9 Themes and Master Pages
Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 4
Department of Information Technology
Course Outline
Sr
No.
Title of the unit
10 Managing State
11 Creating and Consuming Web Services
12 Advanced in .NET
Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 5
Department of Information Technology
Preferred Material
 Text Books:
 Christian Nagel, Professional C# .Net, Wrox
Publication
 Matthew Macdonald and Robert Standefer,
ASP.NET Complete Reference, TMH
 Reference book:
 Vijay Mukhi, C# The Basics, BPB Publications
Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 6
Department of Information Technology
.NET Framework
 What is .NET?
 Language?
 Technology?
 .NET Framework
 .NET Framework is an environment/platform
on which you can develop any application.
Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 7
Department of Information Technology
What is .NET Framework?
.NET
Application
Operating
System
.NET
Framework
Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 8
Department of Information Technology
History of Dot Net
 Microsoft put their best men at work for a secret
project called Next Generation Windows Services
(NGWS)., under the direct supervision of Mr. Bill
Gates.
 Sometime in the July 2000, Microsoft announced a
whole new software development framework for
Windows called .NET in the Professional Developer
Conference (PDC).
 Microsoft also released PDC version of the software for
the developers to test.
 After initial testing and feedback Beta 1 of .NET was
announced.
 Microsoft then announced Beta 2 after it incorporated
many changes suggested by the community into the
software.
 Finally, in March 2002 Microsoft released final version
of the .NET framework.
Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 9
Department of Information Technology
Features of .NET Framework
 Pure object oriented programming
 Inheritance, Polymorphism, Fun. &
Operator Overloading etc.
 Platform Independent
 Multiple Language Supports
 C#,VB.NET,F#,J#, etc.
 Rich set of Class Library
 FCL (Framework Base Class Library)
 Language Interoperability
 CLS, CTS
Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 10
Department of Information Technology
Features of .NET Framework
 Efficient Data Access
 ADO.NET
 Security
 Scalability
 Automatic memory management
 Garbage Collection
Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 11
Department of Information Technology
Architecture of .NET framework
Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 12
Department of Information Technology
Framework Base Class Library
 Framework – you can call it and it can
call you
 Large class library
 Over 2500 classes
 Major components
 Networking, security, I/O, files, etc.
 Data and XML Classes
 Web Services/UI
 Windows UI
Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 13
Department of Information Technology
Common Language Runtime(CLR)
 Central to the .NET Framework is its
runtime execution environment
 Compilation occurs in two steps in .NET
 Compilation of source code to Microsoft
Intermediate Language (IL).
 2. Compilation of IL to platform-specific
code by the CLR
Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 14
Department of Information Technology
Common Language Runtime(CLR)
Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 15
Department of Information Technology
Common Type System (CTS)
 Types are the mechanism by which code
written in one programming language
can talk to code written in a different
programming language
 Because types are at the root of the
CLR, Microsoft created a formal
specification – the common type system
(CTS)—that describes how types are
defined and behave
Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 16
Department of Information Technology
Common Language Specification
 Language integration is a fantastic goal,
of course, but the truth of the matter is
that programming languages are very
different from one another
 For Example
 case-sensitivity
 unsigned integers
 operator overloading
 methods that support a variable number
of parameters
Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 17
Department of Information Technology
Common Language Specification
 then it is important that you use only
features of your programming language
that are guaranteed to be available in all
other languages
 To help you with this, Microsoft has
defined a common language
specification (CLS) that details for
compiler vendors the minimum set of
features that their compilers must
support if they are to target the runtime
Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 18
Department of Information Technology
Common Language Specification
Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 19
Department of Information Technology
Managed Code
 Managed code is code running under the
control of the CLR.
 Managed code is compiled to IL, and
then JITted into native code.
 Managed code uses data managed by
the Garbage Collector.
 Managed code includes meta-data.
 Code that is not running under the
control of CLR is unmanaged code
 Example:Pointer in C++;
Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 20
Department of Information Technology
Garbage Collector
 The purpose of this program is to clean
up memory automatically
 Objects are allocated on the Garbage
collected heap
 The garbage collector is responsible for
reclaiming memory used by objects
which are no longer in use.
Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 21
Department of Information Technology
Namespaces
 Suppose you are team leader and 10
developers are working in team.
 For One project you ask your 10
developer to create 10 classes
individually.
 Your task is to combine all these 100
class into one module.
 How many chances are that your
developer will not take same class
name???
Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 22
Department of Information Technology
Namespace
 To avoid conflict in class name we are
using namespace.
 Instead create classes ask them to
create all the classes in namespace.
Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 23
Department of Information Technology
Assembly
 An assembly is the .NET term for a
deployment and configuration unit.
 It is a logical unit of MSIL, Meta data,
resource etc.
 Two Types;
 Private Assembly
 Private to user application only
 Example: exe/dll file of application
 Shared Assembly
 Sheared by one or more programs
 Example:mscorlib.dll
Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 24
Department of Information Technology
Assembly Versioning
Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 25
Department of Information Technology
DLL HELL
 "DLL Hell" refers to the set of problems
caused when multiple applications
attempt to share a common component
like a dynamic link library (DLL) or a
Component Object Model (COM) class
 DLL Hell problem is solved in .NET with
the introduction of Assembly versioning.
It allows the application to specify not
only the library it needs to run, but also
the version of the assembly.
Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 26
Department of Information Technology
.NET Interoperability
 Why Interoperability?
 The .NET platform is new
 The Win32 platform is well
established
 No one wants to start from scratch
 Use of existing code in .NET
applications is essential
 Interoperability goes both ways
Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 27
Department of Information Technology
COM (Component Object Model)
• COM is dead!!!
• COM code equals legacy code
• If you don’t know COM, don’t start
learning it now
• Er, ....
• That’s not practical
• There is a massive investment in COM
that we still need to use
Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 28
Department of Information Technology
General Points
• COM ↔ .NET Interoperability is usually
called Com Interop
• COM/Win32 ↔ .NET requires
marshaling of parameters
• COM Interop requires some
reconciliation of COM reference
counting and .NET GC mechanisms
• Interoperability requires some proxy /
wrapper to be in place (automated)

More Related Content

What's hot

Introduction to .net FrameWork by QuontraSolutions
Introduction to .net FrameWork by QuontraSolutionsIntroduction to .net FrameWork by QuontraSolutions
Introduction to .net FrameWork by QuontraSolutionsQuontra Solutions
 
6.origins genesis of .net technology
6.origins genesis of .net technology6.origins genesis of .net technology
6.origins genesis of .net technologyPramod Rathore
 
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)citizenmatt
 
Introduction to .NET by QuontraSolutions
Introduction to .NET by QuontraSolutionsIntroduction to .NET by QuontraSolutions
Introduction to .NET by QuontraSolutionsQUONTRASOLUTIONS
 
C# .NET: Language Features and Creating .NET Projects, Namespaces Classes and...
C# .NET: Language Features and Creating .NET Projects, Namespaces Classes and...C# .NET: Language Features and Creating .NET Projects, Namespaces Classes and...
C# .NET: Language Features and Creating .NET Projects, Namespaces Classes and...yazad dumasia
 
01 intro to programming in .net
01   intro to programming in .net01   intro to programming in .net
01 intro to programming in .netFelisha Hosein
 
Common language runtime clr
Common language runtime clrCommon language runtime clr
Common language runtime clrSanSan149
 
.Net Framework Introduction
.Net Framework Introduction.Net Framework Introduction
.Net Framework IntroductionAbhishek Sahu
 
Visual Studio 2010 and .NET Framework 4.0 Overview
Visual Studio 2010 and .NET Framework 4.0 OverviewVisual Studio 2010 and .NET Framework 4.0 Overview
Visual Studio 2010 and .NET Framework 4.0 OverviewHarish Ranganathan
 
Introductionto .netframework by Priyanka Pinglikar
Introductionto .netframework by Priyanka PinglikarIntroductionto .netframework by Priyanka Pinglikar
Introductionto .netframework by Priyanka PinglikarPriyankaPinglikar
 
Dotnet Frameworks Version History
Dotnet Frameworks Version HistoryDotnet Frameworks Version History
Dotnet Frameworks Version Historyvoltaincx
 
Module 1: Introduction to .NET Framework 3.5 (Slides)
Module 1: Introduction to .NET Framework 3.5 (Slides)Module 1: Introduction to .NET Framework 3.5 (Slides)
Module 1: Introduction to .NET Framework 3.5 (Slides)Mohamed Saleh
 
02 intro to programming in .net (part 2)
02   intro to programming in .net (part 2)02   intro to programming in .net (part 2)
02 intro to programming in .net (part 2)Felisha Hosein
 
Lesson 1 Understanding Dot Net Framework
Lesson 1   Understanding Dot Net FrameworkLesson 1   Understanding Dot Net Framework
Lesson 1 Understanding Dot Net Frameworknbaveja
 
Presentation1
Presentation1Presentation1
Presentation1kpkcsc
 
A Sneak Peek At Visual Studio 2010 And .Net Framework 4.0
A Sneak Peek At Visual Studio 2010 And .Net Framework 4.0A Sneak Peek At Visual Studio 2010 And .Net Framework 4.0
A Sneak Peek At Visual Studio 2010 And .Net Framework 4.0Antonio Chagoury
 
Migrating To Visual Studio 2008 & .Net Framework 3.5
Migrating To Visual Studio 2008 & .Net Framework 3.5Migrating To Visual Studio 2008 & .Net Framework 3.5
Migrating To Visual Studio 2008 & .Net Framework 3.5Jeff Blankenburg
 

What's hot (20)

Introduction to .net FrameWork by QuontraSolutions
Introduction to .net FrameWork by QuontraSolutionsIntroduction to .net FrameWork by QuontraSolutions
Introduction to .net FrameWork by QuontraSolutions
 
6.origins genesis of .net technology
6.origins genesis of .net technology6.origins genesis of .net technology
6.origins genesis of .net technology
 
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)
 
Introduction to .NET by QuontraSolutions
Introduction to .NET by QuontraSolutionsIntroduction to .NET by QuontraSolutions
Introduction to .NET by QuontraSolutions
 
C# .NET: Language Features and Creating .NET Projects, Namespaces Classes and...
C# .NET: Language Features and Creating .NET Projects, Namespaces Classes and...C# .NET: Language Features and Creating .NET Projects, Namespaces Classes and...
C# .NET: Language Features and Creating .NET Projects, Namespaces Classes and...
 
01 intro to programming in .net
01   intro to programming in .net01   intro to programming in .net
01 intro to programming in .net
 
Dotnet basics
Dotnet basicsDotnet basics
Dotnet basics
 
Common language runtime clr
Common language runtime clrCommon language runtime clr
Common language runtime clr
 
.Net Framework Introduction
.Net Framework Introduction.Net Framework Introduction
.Net Framework Introduction
 
Visual Studio 2010 and .NET Framework 4.0 Overview
Visual Studio 2010 and .NET Framework 4.0 OverviewVisual Studio 2010 and .NET Framework 4.0 Overview
Visual Studio 2010 and .NET Framework 4.0 Overview
 
Introductionto .netframework by Priyanka Pinglikar
Introductionto .netframework by Priyanka PinglikarIntroductionto .netframework by Priyanka Pinglikar
Introductionto .netframework by Priyanka Pinglikar
 
Dotnet Frameworks Version History
Dotnet Frameworks Version HistoryDotnet Frameworks Version History
Dotnet Frameworks Version History
 
1.Philosophy of .NET
1.Philosophy of .NET1.Philosophy of .NET
1.Philosophy of .NET
 
Module 1: Introduction to .NET Framework 3.5 (Slides)
Module 1: Introduction to .NET Framework 3.5 (Slides)Module 1: Introduction to .NET Framework 3.5 (Slides)
Module 1: Introduction to .NET Framework 3.5 (Slides)
 
02 intro to programming in .net (part 2)
02   intro to programming in .net (part 2)02   intro to programming in .net (part 2)
02 intro to programming in .net (part 2)
 
Net framework
Net frameworkNet framework
Net framework
 
Lesson 1 Understanding Dot Net Framework
Lesson 1   Understanding Dot Net FrameworkLesson 1   Understanding Dot Net Framework
Lesson 1 Understanding Dot Net Framework
 
Presentation1
Presentation1Presentation1
Presentation1
 
A Sneak Peek At Visual Studio 2010 And .Net Framework 4.0
A Sneak Peek At Visual Studio 2010 And .Net Framework 4.0A Sneak Peek At Visual Studio 2010 And .Net Framework 4.0
A Sneak Peek At Visual Studio 2010 And .Net Framework 4.0
 
Migrating To Visual Studio 2008 & .Net Framework 3.5
Migrating To Visual Studio 2008 & .Net Framework 3.5Migrating To Visual Studio 2008 & .Net Framework 3.5
Migrating To Visual Studio 2008 & .Net Framework 3.5
 

Viewers also liked

.NET Framework Overview
.NET Framework Overview.NET Framework Overview
.NET Framework OverviewDoncho Minkov
 
.NET Framework 4.0 – Changes & Benefits
.NET Framework 4.0 – Changes & Benefits .NET Framework 4.0 – Changes & Benefits
.NET Framework 4.0 – Changes & Benefits Deepika Chaudhary
 
Using MongoDB with the .Net Framework
Using MongoDB with the .Net FrameworkUsing MongoDB with the .Net Framework
Using MongoDB with the .Net FrameworkStefano Paluello
 
c#.Net Windows application
c#.Net Windows application c#.Net Windows application
c#.Net Windows application veera
 
Find out Which Versions of the .NET Framework are Installed on a PC.
Find out Which Versions of the .NET Framework are Installed on a PC.Find out Which Versions of the .NET Framework are Installed on a PC.
Find out Which Versions of the .NET Framework are Installed on a PC.raj upadhyay
 
Using The .NET Framework
Using The .NET FrameworkUsing The .NET Framework
Using The .NET FrameworkLearnNowOnline
 
Inside .net framework
Inside .net frameworkInside .net framework
Inside .net frameworkFaisal Aziz
 
.net framework from 1.0 -> 4.0
.net framework from 1.0 -> 4.0.net framework from 1.0 -> 4.0
.net framework from 1.0 -> 4.0ligaoren
 
Introduction to .NET Programming
Introduction to .NET ProgrammingIntroduction to .NET Programming
Introduction to .NET ProgrammingKarthikeyan Mkr
 

Viewers also liked (14)

.NET Framework Overview
.NET Framework Overview.NET Framework Overview
.NET Framework Overview
 
.NET Framework 4.0 – Changes & Benefits
.NET Framework 4.0 – Changes & Benefits .NET Framework 4.0 – Changes & Benefits
.NET Framework 4.0 – Changes & Benefits
 
.net framework
.net framework.net framework
.net framework
 
Introduction to .NET Framework
Introduction to .NET FrameworkIntroduction to .NET Framework
Introduction to .NET Framework
 
Using MongoDB with the .Net Framework
Using MongoDB with the .Net FrameworkUsing MongoDB with the .Net Framework
Using MongoDB with the .Net Framework
 
Introduction of .net framework
Introduction of .net frameworkIntroduction of .net framework
Introduction of .net framework
 
c#.Net Windows application
c#.Net Windows application c#.Net Windows application
c#.Net Windows application
 
Find out Which Versions of the .NET Framework are Installed on a PC.
Find out Which Versions of the .NET Framework are Installed on a PC.Find out Which Versions of the .NET Framework are Installed on a PC.
Find out Which Versions of the .NET Framework are Installed on a PC.
 
Using The .NET Framework
Using The .NET FrameworkUsing The .NET Framework
Using The .NET Framework
 
Inside .net framework
Inside .net frameworkInside .net framework
Inside .net framework
 
.Net framework
.Net framework.Net framework
.Net framework
 
.net framework from 1.0 -> 4.0
.net framework from 1.0 -> 4.0.net framework from 1.0 -> 4.0
.net framework from 1.0 -> 4.0
 
Introduction to .NET Programming
Introduction to .NET ProgrammingIntroduction to .NET Programming
Introduction to .NET Programming
 
Introduction to .NET Framework
Introduction to .NET FrameworkIntroduction to .NET Framework
Introduction to .NET Framework
 

Similar to Introduction to .NET Framework

Vb ch 2-introduction_to_.net
Vb ch 2-introduction_to_.netVb ch 2-introduction_to_.net
Vb ch 2-introduction_to_.netbantamlak dejene
 
Aspect Oriented Programming Through C#.NET
Aspect Oriented Programming Through C#.NETAspect Oriented Programming Through C#.NET
Aspect Oriented Programming Through C#.NETWaqas Tariq
 
.Net framework
.Net framework.Net framework
.Net frameworkRaghu nath
 
1 get started with c#
1   get started with c#1   get started with c#
1 get started with c#Tuan Ngo
 
Introdot Netc Sharp En
Introdot Netc Sharp EnIntrodot Netc Sharp En
Introdot Netc Sharp EnGregory Renard
 
.Net introduction by Quontra Solutions
.Net introduction by Quontra Solutions.Net introduction by Quontra Solutions
.Net introduction by Quontra SolutionsQUONTRASOLUTIONS
 
2018.11 eclipse overview (japan meeting)
2018.11 eclipse overview (japan meeting)2018.11 eclipse overview (japan meeting)
2018.11 eclipse overview (japan meeting)Mike Milinkovich
 
tybsc it asp.net full unit 1,2,3,4,5,6 notes
tybsc it asp.net full unit 1,2,3,4,5,6 notestybsc it asp.net full unit 1,2,3,4,5,6 notes
tybsc it asp.net full unit 1,2,3,4,5,6 notesWE-IT TUTORIALS
 
Microsoft dot net framework
Microsoft dot net frameworkMicrosoft dot net framework
Microsoft dot net frameworkInstantenigma
 
Best things to know about .net framework
Best things to know about .net frameworkBest things to know about .net framework
Best things to know about .net frameworkShelly Megan
 

Similar to Introduction to .NET Framework (20)

Unit6
Unit6Unit6
Unit6
 
C# intro
C# introC# intro
C# intro
 
introduction to .net
introduction to .netintroduction to .net
introduction to .net
 
Dot net
Dot netDot net
Dot net
 
C# chap 2
C# chap 2C# chap 2
C# chap 2
 
Vb ch 2-introduction_to_.net
Vb ch 2-introduction_to_.netVb ch 2-introduction_to_.net
Vb ch 2-introduction_to_.net
 
Aspect Oriented Programming Through C#.NET
Aspect Oriented Programming Through C#.NETAspect Oriented Programming Through C#.NET
Aspect Oriented Programming Through C#.NET
 
.Net framework
.Net framework.Net framework
.Net framework
 
1 get started with c#
1   get started with c#1   get started with c#
1 get started with c#
 
Introdot Netc Sharp En
Introdot Netc Sharp EnIntrodot Netc Sharp En
Introdot Netc Sharp En
 
Asp.net new
Asp.net newAsp.net new
Asp.net new
 
.Net introduction by Quontra Solutions
.Net introduction by Quontra Solutions.Net introduction by Quontra Solutions
.Net introduction by Quontra Solutions
 
Part i
Part iPart i
Part i
 
Introduction of c# day1
Introduction of c# day1Introduction of c# day1
Introduction of c# day1
 
2018.11 eclipse overview (japan meeting)
2018.11 eclipse overview (japan meeting)2018.11 eclipse overview (japan meeting)
2018.11 eclipse overview (japan meeting)
 
Programming
Programming Programming
Programming
 
tybsc it asp.net full unit 1,2,3,4,5,6 notes
tybsc it asp.net full unit 1,2,3,4,5,6 notestybsc it asp.net full unit 1,2,3,4,5,6 notes
tybsc it asp.net full unit 1,2,3,4,5,6 notes
 
T2
T2T2
T2
 
Microsoft dot net framework
Microsoft dot net frameworkMicrosoft dot net framework
Microsoft dot net framework
 
Best things to know about .net framework
Best things to know about .net frameworkBest things to know about .net framework
Best things to know about .net framework
 

Recently uploaded

MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based projectAnoyGreter
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWave PLM
 
Unveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesUnveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesŁukasz Chruściel
 
How to Track Employee Performance A Comprehensive Guide.pdf
How to Track Employee Performance A Comprehensive Guide.pdfHow to Track Employee Performance A Comprehensive Guide.pdf
How to Track Employee Performance A Comprehensive Guide.pdfLivetecs LLC
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureDinusha Kumarasiri
 
How to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion ApplicationHow to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion ApplicationBradBedford3
 
PREDICTING RIVER WATER QUALITY ppt presentation
PREDICTING  RIVER  WATER QUALITY  ppt presentationPREDICTING  RIVER  WATER QUALITY  ppt presentation
PREDICTING RIVER WATER QUALITY ppt presentationvaddepallysandeep122
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityNeo4j
 
Odoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 EnterpriseOdoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 Enterprisepreethippts
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...stazi3110
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEOrtus Solutions, Corp
 
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...OnePlan Solutions
 
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...confluent
 
A healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfA healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfMarharyta Nedzelska
 
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Angel Borroy López
 
Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Mater
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsAhmed Mohamed
 
SpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at RuntimeSpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at Runtimeandrehoraa
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmSujith Sukumaran
 

Recently uploaded (20)

MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based project
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need It
 
Unveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesUnveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New Features
 
How to Track Employee Performance A Comprehensive Guide.pdf
How to Track Employee Performance A Comprehensive Guide.pdfHow to Track Employee Performance A Comprehensive Guide.pdf
How to Track Employee Performance A Comprehensive Guide.pdf
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with Azure
 
How to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion ApplicationHow to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion Application
 
PREDICTING RIVER WATER QUALITY ppt presentation
PREDICTING  RIVER  WATER QUALITY  ppt presentationPREDICTING  RIVER  WATER QUALITY  ppt presentation
PREDICTING RIVER WATER QUALITY ppt presentation
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered Sustainability
 
Odoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 EnterpriseOdoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 Enterprise
 
2.pdf Ejercicios de programación competitiva
2.pdf Ejercicios de programación competitiva2.pdf Ejercicios de programación competitiva
2.pdf Ejercicios de programación competitiva
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
 
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
 
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
 
A healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfA healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdf
 
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
 
Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML Diagrams
 
SpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at RuntimeSpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at Runtime
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalm
 

Introduction to .NET Framework

  • 1. Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 1 Department of Information Technology CE308.01: ADVANCED PROGRAMMING USING .NET FRAMEWORK
  • 2. Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 2 Department of Information Technology Credits and Hours: Teaching Scheme Theory Practical Total Credit Hours/week 2 4 6 4 Marks 100 100 200
  • 3. Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 3 Department of Information Technology Course Outline Sr No. Title of the unit 1 Introduction to .NET framework 2 C# - The Basics, Console Applications in C# 3 C# .NET 4 ADO.NET 5 Windows Forms and Controls in detail 6 Visual Inheritance in C#.NET 7 Mastering Windows Forms 8 ASP.NET 9 Themes and Master Pages
  • 4. Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 4 Department of Information Technology Course Outline Sr No. Title of the unit 10 Managing State 11 Creating and Consuming Web Services 12 Advanced in .NET
  • 5. Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 5 Department of Information Technology Preferred Material  Text Books:  Christian Nagel, Professional C# .Net, Wrox Publication  Matthew Macdonald and Robert Standefer, ASP.NET Complete Reference, TMH  Reference book:  Vijay Mukhi, C# The Basics, BPB Publications
  • 6. Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 6 Department of Information Technology .NET Framework  What is .NET?  Language?  Technology?  .NET Framework  .NET Framework is an environment/platform on which you can develop any application.
  • 7. Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 7 Department of Information Technology What is .NET Framework? .NET Application Operating System .NET Framework
  • 8. Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 8 Department of Information Technology History of Dot Net  Microsoft put their best men at work for a secret project called Next Generation Windows Services (NGWS)., under the direct supervision of Mr. Bill Gates.  Sometime in the July 2000, Microsoft announced a whole new software development framework for Windows called .NET in the Professional Developer Conference (PDC).  Microsoft also released PDC version of the software for the developers to test.  After initial testing and feedback Beta 1 of .NET was announced.  Microsoft then announced Beta 2 after it incorporated many changes suggested by the community into the software.  Finally, in March 2002 Microsoft released final version of the .NET framework.
  • 9. Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 9 Department of Information Technology Features of .NET Framework  Pure object oriented programming  Inheritance, Polymorphism, Fun. & Operator Overloading etc.  Platform Independent  Multiple Language Supports  C#,VB.NET,F#,J#, etc.  Rich set of Class Library  FCL (Framework Base Class Library)  Language Interoperability  CLS, CTS
  • 10. Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 10 Department of Information Technology Features of .NET Framework  Efficient Data Access  ADO.NET  Security  Scalability  Automatic memory management  Garbage Collection
  • 11. Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 11 Department of Information Technology Architecture of .NET framework
  • 12. Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 12 Department of Information Technology Framework Base Class Library  Framework – you can call it and it can call you  Large class library  Over 2500 classes  Major components  Networking, security, I/O, files, etc.  Data and XML Classes  Web Services/UI  Windows UI
  • 13. Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 13 Department of Information Technology Common Language Runtime(CLR)  Central to the .NET Framework is its runtime execution environment  Compilation occurs in two steps in .NET  Compilation of source code to Microsoft Intermediate Language (IL).  2. Compilation of IL to platform-specific code by the CLR
  • 14. Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 14 Department of Information Technology Common Language Runtime(CLR)
  • 15. Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 15 Department of Information Technology Common Type System (CTS)  Types are the mechanism by which code written in one programming language can talk to code written in a different programming language  Because types are at the root of the CLR, Microsoft created a formal specification – the common type system (CTS)—that describes how types are defined and behave
  • 16. Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 16 Department of Information Technology Common Language Specification  Language integration is a fantastic goal, of course, but the truth of the matter is that programming languages are very different from one another  For Example  case-sensitivity  unsigned integers  operator overloading  methods that support a variable number of parameters
  • 17. Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 17 Department of Information Technology Common Language Specification  then it is important that you use only features of your programming language that are guaranteed to be available in all other languages  To help you with this, Microsoft has defined a common language specification (CLS) that details for compiler vendors the minimum set of features that their compilers must support if they are to target the runtime
  • 18. Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 18 Department of Information Technology Common Language Specification
  • 19. Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 19 Department of Information Technology Managed Code  Managed code is code running under the control of the CLR.  Managed code is compiled to IL, and then JITted into native code.  Managed code uses data managed by the Garbage Collector.  Managed code includes meta-data.  Code that is not running under the control of CLR is unmanaged code  Example:Pointer in C++;
  • 20. Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 20 Department of Information Technology Garbage Collector  The purpose of this program is to clean up memory automatically  Objects are allocated on the Garbage collected heap  The garbage collector is responsible for reclaiming memory used by objects which are no longer in use.
  • 21. Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 21 Department of Information Technology Namespaces  Suppose you are team leader and 10 developers are working in team.  For One project you ask your 10 developer to create 10 classes individually.  Your task is to combine all these 100 class into one module.  How many chances are that your developer will not take same class name???
  • 22. Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 22 Department of Information Technology Namespace  To avoid conflict in class name we are using namespace.  Instead create classes ask them to create all the classes in namespace.
  • 23. Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 23 Department of Information Technology Assembly  An assembly is the .NET term for a deployment and configuration unit.  It is a logical unit of MSIL, Meta data, resource etc.  Two Types;  Private Assembly  Private to user application only  Example: exe/dll file of application  Shared Assembly  Sheared by one or more programs  Example:mscorlib.dll
  • 24. Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 24 Department of Information Technology Assembly Versioning
  • 25. Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 25 Department of Information Technology DLL HELL  "DLL Hell" refers to the set of problems caused when multiple applications attempt to share a common component like a dynamic link library (DLL) or a Component Object Model (COM) class  DLL Hell problem is solved in .NET with the introduction of Assembly versioning. It allows the application to specify not only the library it needs to run, but also the version of the assembly.
  • 26. Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 26 Department of Information Technology .NET Interoperability  Why Interoperability?  The .NET platform is new  The Win32 platform is well established  No one wants to start from scratch  Use of existing code in .NET applications is essential  Interoperability goes both ways
  • 27. Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 27 Department of Information Technology COM (Component Object Model) • COM is dead!!! • COM code equals legacy code • If you don’t know COM, don’t start learning it now • Er, .... • That’s not practical • There is a massive investment in COM that we still need to use
  • 28. Classified e-Material ©Copyrights Charotar Institute of Technology, Charusat-Changa 28 Department of Information Technology General Points • COM ↔ .NET Interoperability is usually called Com Interop • COM/Win32 ↔ .NET requires marshaling of parameters • COM Interop requires some reconciliation of COM reference counting and .NET GC mechanisms • Interoperability requires some proxy / wrapper to be in place (automated)