• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Getting Started with .NET
 

Getting Started with .NET

on

  • 418 views

Learn the advantages and architecture of the .NET Framework.

Learn the advantages and architecture of the .NET Framework.

Statistics

Views

Total Views
418
Views on SlideShare
417
Embed Views
1

Actions

Likes
1
Downloads
0
Comments
0

1 Embed 1

http://www.pinterest.com 1

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Possible DEMO\nUsing the command-line compiler to build a console application\n
  • Possible DEMO\nUsing the command-line compiler to build a console application\n
  • Possible DEMO\nUsing the command-line compiler to build a console application\n
  • Possible DEMO\nUsing the command-line compiler to build a console application\n
  • Possible DEMO\nUsing the command-line compiler to build a console application\n
  • Possible DEMO\nUsing the command-line compiler to build a console application\n
  • Possible DEMO\nUsing the command-line compiler to build a console application\n
  • Possible DEMO\nUsing the command-line compiler to build a console application\n
  • Possible DEMO\nUsing the command-line compiler to build a console application\n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • DEMO: rest of section\n

Getting Started with .NET Getting Started with .NET Presentation Transcript

  • Getting Started with .NET Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Objectives Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Objectives• Learn the advantages and architecture of the .NET Framework Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Objectives• Learn the advantages and architecture of the .NET Framework• Examine sample Microsoft Intermediate Language code Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Objectives• Learn the advantages and architecture of the .NET Framework• Examine sample Microsoft Intermediate Language code• Set up a development profile in Visual Studio .NET Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Objectives• Learn the advantages and architecture of the .NET Framework• Examine sample Microsoft Intermediate Language code• Set up a development profile in Visual Studio .NET• Create Console Application projects in Visual Studio .NET Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Objectives• Learn the advantages and architecture of the .NET Framework• Examine sample Microsoft Intermediate Language code• Set up a development profile in Visual Studio .NET• Create Console Application projects in Visual Studio .NET• View the code that Visual Studio generates and understand what it does Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Objectives• Learn the advantages and architecture of the .NET Framework• Examine sample Microsoft Intermediate Language code• Set up a development profile in Visual Studio .NET• Create Console Application projects in Visual Studio .NET• View the code that Visual Studio generates and understand what it does• Explore the Object Browser in the Integrated Development Environment Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Objectives• Learn the advantages and architecture of the .NET Framework• Examine sample Microsoft Intermediate Language code• Set up a development profile in Visual Studio .NET• Create Console Application projects in Visual Studio .NET• View the code that Visual Studio generates and understand what it does• Explore the Object Browser in the Integrated Development Environment• Take advantage of Visual Studio’s exception-handling features Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Agenda Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Agenda• Thinking about .NET Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Agenda• Thinking about .NET• Using Visual Studio 2010 Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Agenda• Thinking about .NET• Using Visual Studio 2010• Debugging and Handling Exceptions Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • What Is .NET, Anyway? Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • What Is .NET, Anyway?• 1991: Windows "sits" on top of DOS Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • What Is .NET, Anyway?• 1991: Windows "sits" on top of DOS  Windows apps require Windows runtime environment Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • What Is .NET, Anyway?• 1991: Windows "sits" on top of DOS  Windows apps require Windows runtime environment  Windows apps provide a consistent API for communicating with drivers, devices, and so on Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • What Is .NET, Anyway?• 1991: Windows "sits" on top of DOS  Windows apps require Windows runtime environment  Windows apps provide a consistent API for communicating with drivers, devices, and so on• 2001: .NET Runtime "sits" on top of Windows Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • What Is .NET, Anyway?• 1991: Windows "sits" on top of DOS  Windows apps require Windows runtime environment  Windows apps provide a consistent API for communicating with drivers, devices, and so on• 2001: .NET Runtime "sits" on top of Windows  .NET apps require .NET runtime environment Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • What Is .NET, Anyway?• 1991: Windows "sits" on top of DOS  Windows apps require Windows runtime environment  Windows apps provide a consistent API for communicating with drivers, devices, and so on• 2001: .NET Runtime "sits" on top of Windows  .NET apps require .NET runtime environment  .NET apps provide a consistent API for working with Windows, data structures, types, and more Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • What Is .NET, Anyway?• 1991: Windows "sits" on top of DOS  Windows apps require Windows runtime environment  Windows apps provide a consistent API for communicating with drivers, devices, and so on• 2001: .NET Runtime "sits" on top of Windows  .NET apps require .NET runtime environment  .NET apps provide a consistent API for working with Windows, data structures, types, and more• .NET provides an environment that handles data types, memory management, APIs, and much more Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • What Is .NET, Anyway? Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • What Is .NET, Anyway?• .NET Framework 2.0: Third version of the Object- oriented programming environment Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • What Is .NET, Anyway?• .NET Framework 2.0: Third version of the Object- oriented programming environment• .NET Framework 3.0: Developed to work with Windows Vista and Windows Server 2008 Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • What Is .NET, Anyway?• .NET Framework 2.0: Third version of the Object- oriented programming environment• .NET Framework 3.0: Developed to work with Windows Vista and Windows Server 2008  Can create command-line apps through rich client apps, including Web applications Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • What Is .NET, Anyway?• .NET Framework 2.0: Third version of the Object- oriented programming environment• .NET Framework 3.0: Developed to work with Windows Vista and Windows Server 2008  Can create command-line apps through rich client apps, including Web applications• .NET is open Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • What Is .NET, Anyway?• .NET Framework 2.0: Third version of the Object- oriented programming environment• .NET Framework 3.0: Developed to work with Windows Vista and Windows Server 2008  Can create command-line apps through rich client apps, including Web applications• .NET is open  Can program in many different languages Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • What Is .NET, Anyway?• .NET Framework 2.0: Third version of the Object- oriented programming environment• .NET Framework 3.0: Developed to work with Windows Vista and Windows Server 2008  Can create command-line apps through rich client apps, including Web applications• .NET is open  Can program in many different languages  Can use different tools Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • What Is .NET, Anyway?• .NET Framework 2.0: Third version of the Object- oriented programming environment• .NET Framework 3.0: Developed to work with Windows Vista and Windows Server 2008  Can create command-line apps through rich client apps, including Web applications• .NET is open  Can program in many different languages  Can use different tools o Not limited to VB/C# and Visual Studio Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • What Is .NET, Anyway?• .NET Framework 2.0: Third version of the Object- oriented programming environment• .NET Framework 3.0: Developed to work with Windows Vista and Windows Server 2008  Can create command-line apps through rich client apps, including Web applications• .NET is open  Can program in many different languages  Can use different tools o Not limited to VB/C# and Visual Studio  .NET SDK is a free download Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • What Is .NET, Anyway?• .NET Framework 2.0: Third version of the Object- oriented programming environment• .NET Framework 3.0: Developed to work with Windows Vista and Windows Server 2008  Can create command-line apps through rich client apps, including Web applications• .NET is open  Can program in many different languages  Can use different tools o Not limited to VB/C# and Visual Studio  .NET SDK is a free download o No need to buy Visual Studio, but its a lot more productive! Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Why .NET? Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Why .NET?• Before .NET, software development required mastery of multiple technologies and authoring tools Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Why .NET?• Before .NET, software development required mastery of multiple technologies and authoring tools  Manually stitched together various programming tools Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Why .NET?• Before .NET, software development required mastery of multiple technologies and authoring tools  Manually stitched together various programming tools• For example: Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Why .NET?• Before .NET, software development required mastery of multiple technologies and authoring tools  Manually stitched together various programming tools• For example:  Web sites? Required VB Scripting or JScript and HTML Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Why .NET?• Before .NET, software development required mastery of multiple technologies and authoring tools  Manually stitched together various programming tools• For example:  Web sites? Required VB Scripting or JScript and HTML  Database apps? SQL/SQL Server Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Why .NET?• Before .NET, software development required mastery of multiple technologies and authoring tools  Manually stitched together various programming tools• For example:  Web sites? Required VB Scripting or JScript and HTML  Database apps? SQL/SQL Server  Business applications? Visual Basic Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Why .NET?• Before .NET, software development required mastery of multiple technologies and authoring tools  Manually stitched together various programming tools• For example:  Web sites? Required VB Scripting or JScript and HTML  Database apps? SQL/SQL Server  Business applications? Visual Basic  Office applications? VBA Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Why .NET?• Before .NET, software development required mastery of multiple technologies and authoring tools  Manually stitched together various programming tools• For example:  Web sites? Required VB Scripting or JScript and HTML  Database apps? SQL/SQL Server  Business applications? Visual Basic  Office applications? VBA  Streamlined graphics? C++ Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Advantages of .NET Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Advantages of .NET• .NET provides remedies: Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Advantages of .NET• .NET provides remedies:  Object-oriented view of Windows: .NET Framework encapsulates lots of functionality into classes Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Advantages of .NET• .NET provides remedies:  Object-oriented view of Windows: .NET Framework encapsulates lots of functionality into classes  Application security built in Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Advantages of .NET• .NET provides remedies:  Object-oriented view of Windows: .NET Framework encapsulates lots of functionality into classes  Application security built in  Deploying applications is easier Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Advantages of .NET• .NET provides remedies:  Object-oriented view of Windows: .NET Framework encapsulates lots of functionality into classes  Application security built in  Deploying applications is easier o Assembly contains and describes unit of deployment Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Advantages of .NET• .NET provides remedies:  Object-oriented view of Windows: .NET Framework encapsulates lots of functionality into classes  Application security built in  Deploying applications is easier o Assembly contains and describes unit of deployment  Versioning issues largely handled without effort Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Advantages of .NET• .NET provides remedies:  Object-oriented view of Windows: .NET Framework encapsulates lots of functionality into classes  Application security built in  Deploying applications is easier o Assembly contains and describes unit of deployment  Versioning issues largely handled without effort  Assemblies can be digitally signed Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Advantages of .NET• .NET provides remedies:  Object-oriented view of Windows: .NET Framework encapsulates lots of functionality into classes  Application security built in  Deploying applications is easier o Assembly contains and describes unit of deployment  Versioning issues largely handled without effort  Assemblies can be digitally signed  Unless using COM, no need for registration Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Advantages of .NET• .NET provides remedies:  Object-oriented view of Windows: .NET Framework encapsulates lots of functionality into classes  Application security built in  Deploying applications is easier o Assembly contains and describes unit of deployment  Versioning issues largely handled without effort  Assemblies can be digitally signed  Unless using COM, no need for registration  All .NET languages are interoperable Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • .NET Framework Architecture Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • .NET Framework ArchitectureVB C++ C# JScript … Common Language Specification Visual Studio .NET ASP.NET Windows Forms ADO.NET and XML Base Class Library Common Language Runtime Windows COM+ Services Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Common Language Runtime Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Common Language Runtime• Common Language Runtime (CLR) provides runtime environment for all .NET applications Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Common Language Runtime• Common Language Runtime (CLR) provides runtime environment for all .NET applications• CLRs purpose is to load and run applications compiled to Intermediate Language (IL) Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Common Language Runtime• Common Language Runtime (CLR) provides runtime environment for all .NET applications• CLRs purpose is to load and run applications compiled to Intermediate Language (IL)  Each .NET compiler creates IL as its output Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Common Language Runtime• Common Language Runtime (CLR) provides runtime environment for all .NET applications• CLRs purpose is to load and run applications compiled to Intermediate Language (IL)  Each .NET compiler creates IL as its output• CLR manages .NET base services: Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Common Language Runtime• Common Language Runtime (CLR) provides runtime environment for all .NET applications• CLRs purpose is to load and run applications compiled to Intermediate Language (IL)  Each .NET compiler creates IL as its output• CLR manages .NET base services:  Memory management Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Common Language Runtime• Common Language Runtime (CLR) provides runtime environment for all .NET applications• CLRs purpose is to load and run applications compiled to Intermediate Language (IL)  Each .NET compiler creates IL as its output• CLR manages .NET base services:  Memory management  Garbage collection Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Common Language Runtime• Common Language Runtime (CLR) provides runtime environment for all .NET applications• CLRs purpose is to load and run applications compiled to Intermediate Language (IL)  Each .NET compiler creates IL as its output• CLR manages .NET base services:  Memory management  Garbage collection  Exception handling Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Common Language Runtime• Common Language Runtime (CLR) provides runtime environment for all .NET applications• CLRs purpose is to load and run applications compiled to Intermediate Language (IL)  Each .NET compiler creates IL as its output• CLR manages .NET base services:  Memory management  Garbage collection  Exception handling  Loading/Running applications Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • CLR and Running Code Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • CLR and Running Code• CLR allows you to run both managed and unmanaged code Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • CLR and Running Code• CLR allows you to run both managed and unmanaged code  Unmanaged code runs outside the CLR Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • CLR and Running Code• CLR allows you to run both managed and unmanaged code  Unmanaged code runs outside the CLR o VB6/C++ code compiled without .NET Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • CLR and Running Code• CLR allows you to run both managed and unmanaged code  Unmanaged code runs outside the CLR o VB6/C++ code compiled without .NET  Managed code runs "within" the CLR, and benefits from the CLRs features Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • CLR and Compilers Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • CLR and Compilers• .NET Compilers create Microsoft Intermediate Language (MSIL, or just IL) as output Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • CLR and Compilers• .NET Compilers create Microsoft Intermediate Language (MSIL, or just IL) as output• At execution time, Just-In-Time (JIT) compiler converts code to native executable Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • More about JIT Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • More about JIT• JIT compiler takes native processor into account Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • More about JIT• JIT compiler takes native processor into account  Creates code optimized for the local environment Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • More about JIT• JIT compiler takes native processor into account  Creates code optimized for the local environment  Makes decisions about how to optimize code at runtime Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • More about JIT• JIT compiler takes native processor into account  Creates code optimized for the local environment  Makes decisions about how to optimize code at runtime• Only needs to compile the application once: Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • More about JIT• JIT compiler takes native processor into account  Creates code optimized for the local environment  Makes decisions about how to optimize code at runtime• Only needs to compile the application once:  Compiled "bits" cached locally Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • More about JIT• JIT compiler takes native processor into account  Creates code optimized for the local environment  Makes decisions about how to optimize code at runtime• Only needs to compile the application once:  Compiled "bits" cached locally  Performance overhead is very slight, if any Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • More about JIT• JIT compiler takes native processor into account  Creates code optimized for the local environment  Makes decisions about how to optimize code at runtime• Only needs to compile the application once:  Compiled "bits" cached locally  Performance overhead is very slight, if any• Remember: .NET Runtime/CLR must be installed on client computers in order to run .NET code Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • .NET Framework Base Class Library Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • .NET Framework Base Class Library • BCL consists of classes that provide base functionality for .NET Framework Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • .NET Framework Base Class Library • BCL consists of classes that provide base functionality for .NET Framework  And many classes that make your life as a developer easier Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • .NET Framework Base Class Library • BCL consists of classes that provide base functionality for .NET Framework  And many classes that make your life as a developer easier  Library of classes used by all .NET applications Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • .NET Framework Base Class Library • BCL consists of classes that provide base functionality for .NET Framework  And many classes that make your life as a developer easier  Library of classes used by all .NET applications • Contains large number of classes (blocks of functionality, including properties, methods, and events) grouped into namespaces Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • .NET Framework Base Class Library • BCL consists of classes that provide base functionality for .NET Framework  And many classes that make your life as a developer easier  Library of classes used by all .NET applications • Contains large number of classes (blocks of functionality, including properties, methods, and events) grouped into namespaces  Each class within a namespace has a unique name Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • .NET Framework Base Class Library • BCL consists of classes that provide base functionality for .NET Framework  And many classes that make your life as a developer easier  Library of classes used by all .NET applications • Contains large number of classes (blocks of functionality, including properties, methods, and events) grouped into namespaces  Each class within a namespace has a unique name • BCLs namespaces group classes into common blocks of functionality Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Some BCL Namespaces Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Some BCL Namespaces• System Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Some BCL Namespaces• System• System.Data Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Some BCL Namespaces• System• System.Data• System.Diagnostics Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Some BCL Namespaces• System• System.Data• System.Diagnostics• System.Globalization Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Some BCL Namespaces• System• System.Data• System.Diagnostics• System.Globalization• System.IO Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Some BCL Namespaces• System• System.Data• System.Diagnostics• System.Globalization• System.IO• System.Text Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Some BCL Namespaces• System• System.Data• System.Diagnostics• System.Globalization• System.IO• System.Text• System.Text.RegularExpressions Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Some BCL Namespaces• System• System.Data• System.Diagnostics• System.Globalization• System.IO• System.Text• System.Text.RegularExpressions• System.Web Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Some BCL Namespaces• System• System.Data• System.Diagnostics• System.Globalization• System.IO• System.Text• System.Text.RegularExpressions• System.Web• System.Windows.Forms Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Some BCL Namespaces• System• System.Data• System.Diagnostics• System.Globalization• System.IO• System.Text• System.Text.RegularExpressions• System.Web• System.Windows.Forms• System.Xml Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • .NET Languages Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • .NET Languages• Microsoft provides several .NET languages: Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • .NET Languages• Microsoft provides several .NET languages:  Visual Basic, Visual C#, C++, JScript Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • .NET Languages• Microsoft provides several .NET languages:  Visual Basic, Visual C#, C++, JScript  Other vendors provide other languages Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • .NET Languages• Microsoft provides several .NET languages:  Visual Basic, Visual C#, C++, JScript  Other vendors provide other languages o Python, Fortran, Cobol, and many more Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • .NET Languages• Microsoft provides several .NET languages:  Visual Basic, Visual C#, C++, JScript  Other vendors provide other languages o Python, Fortran, Cobol, and many more• How do languages interoperate? Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • .NET Languages• Microsoft provides several .NET languages:  Visual Basic, Visual C#, C++, JScript  Other vendors provide other languages o Python, Fortran, Cobol, and many more• How do languages interoperate?  .NET provides: Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • .NET Languages• Microsoft provides several .NET languages:  Visual Basic, Visual C#, C++, JScript  Other vendors provide other languages o Python, Fortran, Cobol, and many more• How do languages interoperate?  .NET provides: o Common Language Specification (CLS): Describes how .NET languages should work Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • .NET Languages• Microsoft provides several .NET languages:  Visual Basic, Visual C#, C++, JScript  Other vendors provide other languages o Python, Fortran, Cobol, and many more• How do languages interoperate?  .NET provides: o Common Language Specification (CLS): Describes how .NET languages should work o Common Type System (CTS): Describes how data types should work together Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • .NET Languages• Microsoft provides several .NET languages:  Visual Basic, Visual C#, C++, JScript  Other vendors provide other languages o Python, Fortran, Cobol, and many more• How do languages interoperate?  .NET provides: o Common Language Specification (CLS): Describes how .NET languages should work o Common Type System (CTS): Describes how data types should work together  In the end: All .NET languages compile to IL Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Examining a .NET Application:Introducing Assemblies Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Examining a .NET Application:Introducing Assemblies• Compile managed code: create assembly Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Examining a .NET Application:Introducing Assemblies• Compile managed code: create assembly• Theoretically, assembly can contain multiple modules Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Examining a .NET Application:Introducing Assemblies• Compile managed code: create assembly• Theoretically, assembly can contain multiple modules  Visual Studio only supports creating single-module assemblies Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Examining a .NET Application:Introducing Assemblies• Compile managed code: create assembly• Theoretically, assembly can contain multiple modules  Visual Studio only supports creating single-module assemblies  Output looks like EXE or DLL Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Examining a .NET Application:Introducing Assemblies• Compile managed code: create assembly• Theoretically, assembly can contain multiple modules  Visual Studio only supports creating single-module assemblies  Output looks like EXE or DLL o Actually contains compiled IL, and information about the assembly Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Examining a .NET Application:Introducing Assemblies• Compile managed code: create assembly• Theoretically, assembly can contain multiple modules  Visual Studio only supports creating single-module assemblies  Output looks like EXE or DLL o Actually contains compiled IL, and information about the assembly  Metadata contains a manifest that describes the assembly, procedures, and types that it exports, along with other required assemblies Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Whats in the Manifest? Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Whats in the Manifest?• Version, name, culture, security requirements Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Whats in the Manifest?• Version, name, culture, security requirements• List of other files in assembly and cryptographic hash for each file Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Whats in the Manifest?• Version, name, culture, security requirements• List of other files in assembly and cryptographic hash for each file• List of public types Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Whats in the Manifest?• Version, name, culture, security requirements• List of other files in assembly and cryptographic hash for each file• List of public types• List of external required references Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Whats in the Manifest?• Version, name, culture, security requirements• List of other files in assembly and cryptographic hash for each file• List of public types• List of external required references• Use ILDASM.EXE to examine contents Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • What Can You Create? Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • What Can You Create?• .NET allows you to create a large range of applications Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • What Can You Create?• .NET allows you to create a large range of applications• Visual Studio includes templates for (among others): Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • What Can You Create?• .NET allows you to create a large range of applications• Visual Studio includes templates for (among others):  Windows application Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • What Can You Create?• .NET allows you to create a large range of applications• Visual Studio includes templates for (among others):  Windows application  Console application Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • What Can You Create?• .NET allows you to create a large range of applications• Visual Studio includes templates for (among others):  Windows application  Console application  Class library Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • What Can You Create?• .NET allows you to create a large range of applications• Visual Studio includes templates for (among others):  Windows application  Console application  Class library  Windows control library Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • What Can You Create?• .NET allows you to create a large range of applications• Visual Studio includes templates for (among others):  Windows application  Console application  Class library  Windows control library  Web control library Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • What Can You Create?• .NET allows you to create a large range of applications• Visual Studio includes templates for (among others):  Windows application  Console application  Class library  Windows control library  Web control library  Web application Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • What Can You Create?• .NET allows you to create a large range of applications• Visual Studio includes templates for (among others):  Windows application  Console application  Class library  Windows control library  Web control library  Web application  XML Web Service Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Agenda Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Agenda• Thinking about .NET Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Agenda• Thinking about .NET• Using Visual Studio 2010 Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Agenda• Thinking about .NET• Using Visual Studio 2010• Debugging and Handling Exceptions Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Using Visual Studio 2010 Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Using Visual Studio 2010• Creating applications using Notepad and command-line compilers is possible Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Using Visual Studio 2010• Creating applications using Notepad and command-line compilers is possible  But its not very efficient Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Using Visual Studio 2010• Creating applications using Notepad and command-line compilers is possible  But its not very efficient• Visual Studio provides a huge number of time- saving tools, along with built-in compiler support Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Using Visual Studio 2010• Creating applications using Notepad and command-line compilers is possible  But its not very efficient• Visual Studio provides a huge number of time- saving tools, along with built-in compiler support• Supports Visual Basic, C#, and more Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Working with Profile Settings Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Working with Profile Settings• User profiles allow you to control Visual Studio behavior Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Working with Profile Settings• User profiles allow you to control Visual Studio behavior• Can use pre-set defaults for: Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Working with Profile Settings• User profiles allow you to control Visual Studio behavior• Can use pre-set defaults for:  Options Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Working with Profile Settings• User profiles allow you to control Visual Studio behavior• Can use pre-set defaults for:  Options  Menus Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Working with Profile Settings• User profiles allow you to control Visual Studio behavior• Can use pre-set defaults for:  Options  Menus  Key bindings Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Working with Profile Settings• User profiles allow you to control Visual Studio behavior• Can use pre-set defaults for:  Options  Menus  Key bindings  Toolbars Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Working with Profile Settings• User profiles allow you to control Visual Studio behavior• Can use pre-set defaults for:  Options  Menus  Key bindings  Toolbars• Pick a profile when you first run Visual Studio Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Working with Profile Settings• User profiles allow you to control Visual Studio behavior• Can use pre-set defaults for:  Options  Menus  Key bindings  Toolbars• Pick a profile when you first run Visual Studio  Or change it any time Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Working with Profile Settings• User profiles allow you to control Visual Studio behavior• Can use pre-set defaults for:  Options  Menus  Key bindings  Toolbars• Pick a profile when you first run Visual Studio  Or change it any time• Demonstration saves and restores profile Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Agenda Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Agenda• Thinking about .NET Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Agenda• Thinking about .NET• Using Visual Studio 2010 Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Agenda• Thinking about .NET• Using Visual Studio 2010• Debugging and Handling Exceptions Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Debugging and Handling Exceptions Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Debugging and Handling Exceptions • No matter how carefully you code Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Debugging and Handling Exceptions • No matter how carefully you code  Youll make coding errors Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Debugging and Handling Exceptions • No matter how carefully you code  Youll make coding errors  Errors will occur at runtime Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Debugging and Handling Exceptions • No matter how carefully you code  Youll make coding errors  Errors will occur at runtime • Three types of errors: Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Debugging and Handling Exceptions • No matter how carefully you code  Youll make coding errors  Errors will occur at runtime • Three types of errors:  Syntax errors Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Debugging and Handling Exceptions • No matter how carefully you code  Youll make coding errors  Errors will occur at runtime • Three types of errors:  Syntax errors  Runtime errors Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Debugging and Handling Exceptions • No matter how carefully you code  Youll make coding errors  Errors will occur at runtime • Three types of errors:  Syntax errors  Runtime errors  Logic errors Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Debugging and Handling Exceptions • No matter how carefully you code  Youll make coding errors  Errors will occur at runtime • Three types of errors:  Syntax errors  Runtime errors  Logic errors • Visual Studio provides powerful tools to help in your debugging process Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Learn More! Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • Learn More!• This is an excerpt from a larger course. Visit www.learnnowonline.com for the full details! Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company