Beginning Visual C# 2012 Programming - Karli Watson - E-Book

Beginning Visual C# 2012 Programming E-Book

Karli Watson

0,0
28,99 €

oder
-100%
Sammeln Sie Punkte in unserem Gutscheinprogramm und kaufen Sie E-Books und Hörbücher mit bis zu 100% Rabatt.
Mehr erfahren.
Beschreibung

Step-by-step beginner's guide to Visual C# 2012 Written for novice programmers who want to learn programming with C# and the .NET framework, this book offers programming basics such as variables, flow control, and object oriented programming. It then moves into web and Windows programming and data access (databases and XML). The authors focus on the tool that beginners use most often to program C#, the Visual C# 2012 development environment in Visual Studio 2012. * Puts the spotlight on key beginning level topics with easy-to-follow instructions for Microsoft Visual C# 2012 * Explores how to program for variables, expressions, flow control, and functions * Explains the debugging process and error handling as well as object oriented programming, and much more Beginning Microsoft Visual C# 2012 Programming offers beginners a guide to writing effective programming code following simple step-by-step methods, each followed by the opportunity to try out newly acquired skills.

Sie lesen das E-Book in den Legimi-Apps auf:

Android
iOS
von Legimi
zertifizierten E-Readern

Seitenzahl: 1435

Veröffentlichungsjahr: 2012

Bewertungen
0,0
0
0
0
0
0
Mehr Informationen
Mehr Informationen
Legimi prüft nicht, ob Rezensionen von Nutzern stammen, die den betreffenden Titel tatsächlich gekauft oder gelesen/gehört haben. Wir entfernen aber gefälschte Rezensionen.



Table of Contents

Cover

Title

Copyright

Dedication

ABOUT THE AUTHORS

ABOUT THE TECHNICAL EDITORS

CREDITS

ACKNOWLEDGMENTS

INTRODUCTION

Part I: The C# Language

Chapter 1: Introducing C#

What Is the .NET Framework?

What Is C#?

Visual Studio 2012

Summary

Chapter 2: Writing A C# Program

The Visual Studio 2012 Development Environment

Console Applications

Desktop Applications

Summary

Chapter 3: Variables and Expressions

Basic C# Syntax

Basic C# Console Application Structure

Variables

Expressions

Summary

Chapter 4: Flow Control

Boolean Logic

The goto Statement

Branching

Looping

Summary

Chapter 5: More About Variables

Type Conversion

Complex Variable Types

String Manipulation

Summary

Chapter 6: Functions

Defining and Using Functions

Variable Scope

The Main( ) Function

Struct Functions

Overloading Functions

Using Delegates

Summary

Chapter 7: Debugging and Error Handling

Debugging in Visual Studio

Error Handling

Summary

Chapter 8: Introduction to Object-Oriented Programming

What Is Object-Oriented Programming?

OOP Techniques

OOP in Desktop Applications

Summary

Chapter 9: Defining Classes

Class Definitions in C#

System.Object

Constructors and Destructors

OOP Tools in Visual Studio

Class Library Projects

Interfaces Versus Abstract Classes

Struct Types

Shallow Copying Versus Deep Copying

Summary

Chapter 10: Defining Class Members

Member Definitions

Additional Class Member Topics

Interface Implementation

Partial Class Definitions

Partial Method Definitions

Example Application

The Call Hierarchy Window

Summary

Chapter 11: Collections, Comparisons, and Conversions

Collections

Comparisons

Conversions

Summary

Chapter 12: Generics

What Are Generics?

Using Generics

Defining Generic Types

Variance

Summary

Chapter 13: Additional OOP Techniques

The :: Operator and the Global Namespace Qualifier

Custom Exceptions

Events

Expanding and Using CardLib

Attributes

Summary

Chapter 14: C# Language Enhancements

Initializers

Type Inference

Anonymous Types

Dynamic Lookup

Advanced Method Parameters

Extension Methods

Lambda Expressions

Caller Information Attributes

Summary

Part II: Windows Programming

Chapter 15: Basic Desktop Programming

XAML

The Playground

Control Layout

The Game Client

Summary

Chapter 16: Advanced Desktop Programming

The Main Window

Creating and Styling Controls

WPF User Controls

Putting It All Together

Summary

Chapter 17: Windows Store Apps

Getting Started

Windows Store Apps versus Desktop Applications

Developing Windows Store Apps

App Development

Converting KarliCards, Part 1

Common Elements of Windows Store Apps

Converting KarliCards, Part 2

The Windows Store

Summary

Chapter 18: Deploying Desktop Applications

Deployment Overview

ClickOnce Deployment

InstallShield Limited Edition

Summary

Part III: Web Programming

Chapter 19: ASP.NET Web Programming

Overview of Web Applications

ASP.NET Runtime

Creating a Simple Page

Server Controls

ASP.NET Postback

ASP.NET AJAX Postback

Input Validation

State Management

Styles

Master Pages

Site Navigation

Authentication and Authorization

Reading from and Writing to a SQL Server Database

Summary

Chapter 20: Deploying Web Applications

Internet Information Services

IIS Configuration

Copying a Website

Publishing a Web Application

Summary

Part IV: Data Access

Chapter 21: File System Data

Streams

The Classes for Input and Output

Serialized Objects

Monitoring the File System

Summary

Chapter 22: XML

XML Documents

Using XML in Your Application

Summary

Chapter 23: Introduction to LINQ

First LINQ Query

Using the LINQ Method Syntax

Ordering Query Results

Understanding the orderby Clause

Ordering Using Method Syntax

Querying a Large Data Set

Using Aggregate Operators

Querying Complex Objects

Projection: Creating New Objects in Queries

Projection: Method Syntax

Using the Select Distinct Query

Using the Any and All Methods

Ordering by Multiple Levels

Multi-Level Ordering Method Syntax: ThenBy

Using Group Queries

Using Take and Skip

Using First and FirstOrDefault

Using the LINQ Set Operators

Using Joins

Summary

Chapter 24: Applying LINQ

LINQ Varieties

Using LINQ with Databases

Installing SQL Server and the Northwind Sample Data

First LINQ to Database Query

Navigating Database Relationships

Using LINQ with XML

LINQ to XML Functional Constructors

Saving and Loading an XML Document

Working with XML Fragments

Generating XML from Databases

How to Query an XML Document

Using LINQ to XML Query Members

Summary

Part V: Additional Techniques

Chapter 25: Windows Communication Foundation

What Is WCF?

WCF Concepts

WCF Programming

Summary

Chapter 26: Windows Workflow Foundation

Hello World

Workflows and Activities

Arguments and Variables

Custom Activities

Summary

Appendix A: Exercise Solutions

Advertisement

End User License Agreement

List of Tables

Chapter 3: Variables and Expressions

TABLE 3.1: Integer Types

TABLE 3-2: Floating-point Types

TABLE 3-3: Text and Boolean Types

TABLE 3-4: Literal Values

TABLE 3-5: Escape Sequences for String Literals

TABLE 3-6: Simple Mathematical Operators

TABLE 3-7: The String Concatenation Operator

TABLE 3-8: Increment and Decrement Operators

TABLE 3-9: Assignment Operators

TABLE 3-10: Operator Precedence

Chapter 4: Flow Control

TABLE 4-1: Boolean Comparison Operators

TABLE 4-2: Boolean Operators for Boolean Values

TABLE 4-3: Conditional Boolean Operators

TABLE 4-4: Boolean Assignment Operators

TABLE 4-5: Using the & Bitwise Operator

TABLE 4-6: Using the | Bitwise Operator

TABLE 4-7: Using the ∧ Operator

TABLE 4-8: Using the ~ Operator

TABLE 4-9: Sample Scheme for Binary Color Representation

TABLE 4-10: Bitwise Shift Operators

TABLE 4-11: Bitwise Shift Assignment Operators

TABLE 4-12: Operator Precedence (Updated)

Chapter 4: Flow Control

TABLE 5-1: Implicit Numeric Conversions

TABLE 5-2: Convert Commands

Chapter 9: Defining Classes

TABLE 9-1: Access Modifiers for Class Definitions

TABLE 9-2: Methods of System.Object

TABLE 9-3: Class View Icons

TABLE 9-4: Additional Class View Icons

Chapter 12: Generics

TABLE 12-1 Resolving Bool? Comparisons with null Value

TABLE 12-2 Generic Collection Type

TABLE 12-3 Supported Methods and Properties for List<T>

TABLE 12-4 Sorting with Generic Types

TABLE 12-5 Generic Type Constraints

Chapter 14: C# Language Enhancements

TABLE 14-1: Extension Methods

Chapter 15: Basic Desktop Programming

TABLE 15-1: Common Control Events

TABLE 15-2: Image Control

TABLE 15-3: TextBox Properties

TABLE 15-4: CheckBox Properties

TABLE 15-5: RadioButton Properties

TABLE 15-6: IsReadOnly and IsEditable Combinations

TABLE 15-7: Other ComboBox Properties

TABLE 15-8: Interesting ListBox Properties

TABLE 15-9: The Name Property

Chapter 16: Advanced Desktop Programming

TABLE 16-1: Displaying MenuItem Properties

TABLE 16-2: The Timeline Properties

TABLE 16-3: Properties of the Spline Key Frame Classes

TABLE 16-4: The Register ( ) Method’s Parameters

TABLE 16-5: Overloads for the FrameworkPropertyMetadata Constructor

Chapter 17: Windows Store Apps

TABLE 17-1: Contracts

TABLE 17-2: Extensions

Chapter 18: Deploying Desktop Applications

TABLE 18-1: NET Framework Support in Windows

Chapter 19: ASP.NET Web Programming

TABLE 19-1: Set Label Controls

TABLE 19-2: Important ASP.NET Server Controls

TABLE 19-3: ScriptManager’s Properties

TABLE 19-4: The UpdatePanel Control’s Properties

TABLE 19-5: ASP.NET’s Validation Controls

TABLE 19-6: Configuring Validation Controls

TABLE 19-7: State Management Techniques

TABLE 19-8: Navigation Controls

TABLE 19-9: ASP.NET’s Security Controls

TABLE 19-10: Enter Column Names and Data Types

TABLE 19-11: The Data Controls

TABLE 19-12: The Data Source Controls

Chapter 21: File System Data

TABLE 21-1: File System Access Classes

TABLE 21-2: Static Methods of the File Class

TABLE 21-3: Static Methods of the Directory Class

TABLE 21-4: FileSystemInfo Properties

TABLE 21-5: FileInfo Properties

TABLE 21-6: Properties Unique to the DirectoryInfo Class

TABLE 21-7: FileAccess Enumeration Members

TABLE 21-8: FileMode Enumeration Members

TABLE 21-9: IFormatter Methods

TABLE 21-10: FileSystemWatcher Properties

Chapter 22: XML

TABLE 22-1: Common DOM Classes

TABLE 22-2: XmlElement Properties

TABLE 22-3: Three Ways to Get the Value of a Node

TABLE 22-4: Methods for Creating Nodes

TABLE 22-5: Methods for Inserting Nodes

TABLE 22-6: Methods for Removing Nodes

TABLE 22-7: Methods for Selecting Nodes

TABLE 22-8: Common XPath Operations

Chapter 23: Introduction to LINQ

TABLE 23-1: Aggregate Operators for Numeric Results

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!

Lesen Sie weiter in der vollständigen Ausgabe!