Start Here! Learn Microsoft Visual C# 2010

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

Ready to learn programming? Start Here!™ Learn the fundamentals of modern programming with Visual C# 2010—and begin building your first apps for the desktop and web. If you have absolutely no previous experience, no problem—simply start here! This book introduces must-know concepts and techniques through easy-to-follow explanations, examples, and exercises. Here’s where you start learning Visual C# Learn how an application performs tasks by tracing its code Query and manipulate application data with LINQ Access web services with REST and SOAP Build simple apps with Windows® Presentation Foundation Explore rich Internet apps with Microsoft Silverlight® Find and fix errors by debugging your applications Put it all together by creating your first programs

Author(s): John Paul Mueller
Publisher: Microsoft Press
Year: 2011

Language: English
Pages: 396

Dedication
Introduction
Who Should Read This Book
Who Should Not Read This Book
Organization of This Book
Free eBook Reference
Conventions and Features in This Book
System Requirements
Code Samples
Acknowledgments
Errata & Book Support
We Want to Hear from You
Stay in Touch
Getting to Know C#
Obtaining and Installing Visual Studio 2010 Express
Downloading the Products
Installing Visual C# 2010 Express
Installing Visual Web Developer 2010 Express
Installing Visual Studio 2010 Service Pack 1
Starting Visual C# 2010 Express
Creating the No-Code Web Browser
Creating a New Windows Forms Application Project
Saving Your Project
Adding Windows Forms Controls
Configuring the Windows Forms Controls
Testing the Windows Forms Application
Viewing the Web Browser Code
Ending Your Session
Creating the No-Code WPF Web Browser
Starting a New WPF Application Project
Adding WPF Controls
Configuring the WPF Controls
Trying the WPF Application
Viewing the WPF Code
Creating the No Code WPF Browser Application
Setting Internet Explorer as the Default
Starting a WPF Browser Application Project
Creating the WPF Browser Application
Adding WPF Browser Controls
Configuring the WPF Browser Controls
Trying the WPF Browser Application
Viewing the WPF Browser Code
Get Going with C#
Developing a Web Project
Starting Visual Web Developer 2010 Express
Creating the No-Code Project
Starting the New Project
Understanding the Default Site
Viewing the Site in a Browser
Creating the No Code Website
Defining a Website Location
Adding a New Page
Adding the Page to the Site Menu
Trying the Site in a Browser
Get Going with C#
Basic Data Manipulation Techniques
Understanding LINQ
Creating the List Project
Starting the List Project
Adding the Controls
Configuring the Controls
Using the Code Editor
Using the Double-Click Method
Choosing an Event Directly
Using the Right-Click Method
Understanding the Code Editor Features
Writing Some Simple Code
Testing the List Application
Tracing the List Application with the Debugger
Discovering Application Functionality Through Tracing
Creating a Breakpoint
Viewing Application Data
Testing a Theory
Creating the List 2 Project
Starting the Second List Project
Copying the Controls
Finessing the Controls
Adding the Extended Code
Tracing Through the Extended Example
Understanding Data Types
Testing Selection Theories
Get Going with C#
Using Collections to Store Data
Understanding Arrays
Creating the Array Project
Starting the Array Project
Adding the Array Project Controls
Configuring the Array Project Controls
Adding the Array Code
Tracing Through the Array Example
Testing Looping Theories
Testing Conditional Theories
Understanding Dictionaries
Creating the Dictionary Project
Starting the Dictionary Project
Adding the Dictionary Project Controls
Configuring the Dictionary Project Controls
Adding the Dictionary Code
Tracing Through the Dictionary Example
Testing Sorting Theories
Testing Statistical Theories
Understanding Structures
Creating the Structure Project
Starting the Structure Project
Adding the Structure Project Controls
Configuring the Structure Project Controls
Creating a Structure
Adding the Structure Example Code
Tracing Through the Structure Example
Get Going with C#
Working with XML
Understanding XML
Combining XML and LINQ
Defining the XML_LINQ Project
Adding and Configuring the XML_LINQ Controls
Using the System.Xml.Linq Namespace
Adding the XML_LINQ Code
Developing the XMLSave Application
Creating the XMLSave Project
Adding XMLSave Application Code
Testing the XMLSave Application
Viewing the XMLSave Output
Developing the XMLRead Application
Creating the XMLRead Project
Adding the XMLRead Application Code
Testing the XMLRead Application
Tracing the XMLRead Application with the Debugger
Handling XML Exceptions
Using XML to Store Application Settings
Creating the XMLSetting Project
Adding the XMLSetting Application Code
Testing the XMLSetting Application
Get Going with C#
Accessing a Web Service
Defining Web Services
Web Services and XML
Working with REST Web Services
Working with SOAP Web Services
Developing the REST Web Service Application
Creating the RESTService Project
Adding the RESTService Application Code
Testing the RESTService Application
Developing the SOAP Web Service Application
Creating the SOAPService Project
Adding and Configuring the SOAPService Controls
Adding the SOAPService Application Code
Testing the SOAPService Application
Get Going with C#
Using the Windows Presentation Foundation
Considering the WPF Differences with Windows Forms Applications
Understanding XAML
Developing the WPF Data Store Application
Creating the WPF_XML Project
Adding and Configuring the WPF_XML Controls
Adding the WPF_XML Application Code
Testing the WPF_XML Application
Tracing the WPF_XML Application with the Debugger
Developing the WPF SOAP Web Service Application
Creating the WPFSOAPService Project
Adding a New Service Data Source
Adding and Configuring the WPFSOAPService Controls
Adding the WPFSOAPService Application Code
Testing the WPFSOAPService Application
Developing the EmbeddedSource Application
Starting the EmbeddedSource Project
Creating an Embedded Resource
Adding and Configuring the EmbeddedSource Controls
Adding the EmbeddedSource Application Code
Testing the EmbeddedSource Application
Tracing the EmbeddedSource Application with the Debugger
Get Going with C#
Working with Libraries
Understanding Reusable Code
Considering How Classes Work
Defining Methods
Defining Properties
Understanding Fields versus Properties
Defining Events
Using Enumerations
Understanding Structures
Creating the UseLibrary Solution
Starting the TestLibrary Project
Adding the TestLibrary Code
Adding the TestApplication Project
Starting the TestApplication Project
Setting TestApplication as the Startup Project
Defining the TestLibrary Reference
Adding and Configuring the TestApplication Controls
Adding the TestApplication Application Code
Testing the UseLibrary Application
Get Going with C#
Creating Utility Applications
Working at the Command Line
Opening and Using the Command Line
Understanding Utility Application Uses
Creating the Console Application
Defining Command-Line Parameters
Creating the Main() Method
Offering Help at the Command Line
Checking for Required Arguments
Checking for Optional Arguments
Testing the DisplayDate Application
Opening the Command Line
Checking the Help Functionality
Displaying a Date
Tracing the DisplayDate Application with the Debugger
Setting the Command-Line Arguments
Performing the Trace
Get Going with C#
Using LINQ in Web Applications
Creating the WebList Project
Starting the WebList Project
Adding and Configuring the WebList Project Controls
Defining the using Statement
Adding the WebList Project Code
Tracing Through the WebList Project Example
Creating the WebArray Project
Starting the WebArray Project
Adding and Configuring the WebArray Project Controls
Adding the WebArray Code
Tracing Through the WebArray Example
Creating the WebStructure Project
Starting the WebStructure Project
Adding and Configuring the WebStructure Project Controls
Adding the WebStructure Code
Tracing Through the Structure Example
Get Going with C#
Working with Silverlight Applications
Understanding the Silverlight Development Difference
Developing a Basic Silverlight Application
Starting the BasicSilverlight Application
Adding and Configuring the BasicSilverlight Project Controls
Adding the BasicSilverlight Project Code
Tracing Through the BasicSilverlight Project Example
Configuring Your Silverlight Application for Debugging
Setting the Browser Configuration
Debugging with Firefox
Adding XML Data Support to a Silverlight Application
Starting the SilverlightXML Application
Adding and Configuring the SilverlightXML Project Controls
Adding the SilverlightXML Project Code
Tracing Through the SilverlightXML Project Example
Get Going with C#
Debugging Applications
Understanding the Debugging Basics
Stepping Through the Code
Working with the Debug Class
Adding Debug Statements to the Example
Working with the Trace Class
Working with Watches
Using Visualizers
Drilling Down into Data
Understanding the Call Stack
Using the Immediate Window
Working with Exceptions
Understanding an Exception Dialog Box
Communicating with the Administrator Using the Event Log
Get Going with C#