Microsoft Visual C# Step by Step

Microsoft Visual C# Step by Step

Eighth Edition

John Sharp

Professional

Microsoft Visual C# Step by Step, 8th Edition

JOHN SHARP

PUBLISHED BY Microsoft Press A Division of Microsoft Corporation One Microsoft Way Redmond, Washington 98052-6399

Copyright ? 2015 by CM Group, Ltd. All rights reserved.

No part of the contents of this book may be reproduced or transmitted in any form or by any means without the written permission of the publisher.

Library of Congress Control Number: 2015940217 ISBN: 978-1-5093-0104-1

Printed and bound in the United States of America.

First Printing

Microsoft Press books are available through booksellers and distributors worldwide. If you need support related to this book, email Microsoft Press Support at mspinput@. Please tell us what you think of this book at .

This book is provided "as-is" and expresses the author's views and opinions. The views, opinions and information expressed in this book, including URL and other Internet website references, may change without notice.

Some examples depicted herein are provided for illustration only and are fctitious. No real association or connection is intended or should be inferred.

Microsoft and the trademarks listed at on the "Trademarks" webpage are trademarks of the Microsoft group of companies. All other marks are property of their respective owners.

Acquisitions and Developmental Editor: Devon Musgrave Project Editor: John Pierce Editorial Production: Rob Nance and John Pierce Technical Reviewer: Marc Young Copyeditor: John Pierce Indexer: Christina Yeager, Emerald Editorial Services Cover: Twist Creative ? Seattle and Joel Panchot

Contents at a glance

Introduction

xix

PART I

CHAPTER 1 CHAPTER 2 CHAPTER 3 CHAPTER 4 CHAPTER 5 CHAPTER 6

INTRODUCING MICROSOFT VISUAL C# AND MICROSOFT VISUAL STUDIO 2015

Welcome to C#

3

Working with variables, operators, and expressions

33

Writing methods and applying scope

59

Using decision statements

87

Using compound assignment and iteration statements

107

Managing errors and exceptions

127

PART II

UNDERSTANDING THE C# OBJECT MODEL

CHAPTER 7 Creating and managing classes and objects

153

CHAPTER 8 Understanding values and references

177

CHAPTER 9

Creating value types with enumerations and structures

201

CHAPTER 10 Using arrays

221

CHAPTER 11 Understanding parameter arrays

243

CHAPTER 12 Working with inheritance

255

CHAPTER 13 Creating interfaces and defining abstract classes

277

CHAPTER 14 Using garbage collection and resource management

305

PART III

DEFINING EXTENSIBLE TYPES WITH C#

CHAPTER 15 Implementing properties to access fields

329

CHAPTER 16 Using indexers

353

CHAPTER 17 Introducing generics

369

CHAPTER 18 Using collections

399

CHAPTER 19 Enumerating collections

423

CHAPTER 20 Decoupling application logic and handling events

439

CHAPTER 21 Querying in-memory data by using query expressions

469

CHAPTER 22 Operator overloading

493

PART IV

CHAPTER 23 CHAPTER 24 CHAPTER 25 CHAPTER 26 CHAPTER 27

BUILDING UNIVERSAL WINDOWS PLATFORM APPLICATIONS WITH C#

Improving throughput by using tasks

517

Improving response time by performing asynchronous

operations

559

Implementing the user interface for a Universal Windows

Platform app

601

Displaying and searching for data in a Universal Windows

Platform app

651

Accessing a remote database from a Universal Windows

Platform app

697

Index

749

iv Contents at a Glance

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download