Course.Microsoft.Visual.CSharp.2010.Aug.2010.pdf

(11559 KB) Pobierz
833369278.028.png
This is an electronic version of the print textbook. Due to electronic rights restrictions,
some third party content may be suppressed. Editorial review has deemed that any suppressed
content does not materially affect the overall learning experience. The publisher reserves the right
to remove content from this title at any time if subsequent rights restrictions require it. For
valuable information on pricing, previous editions, changes to current editions, and alternate
formats, please visit www.cengage.com/highered to search by ISBN#, author, title, or keyword for
materials in your areas of interest.
FOURTH EDITION
MICROSOFT®
VISUAL C#® 2010
AN INTRODUCTION TO OBJECT-ORIENTED PROGRAMMING
JOYCE FARRELL
Australia • Brazil • Japan • Korea • Mexico • Singapore • Spain • United Kingdom • United States
833369278.029.png 833369278.030.png 833369278.031.png 833369278.001.png 833369278.002.png 833369278.003.png
 
Microsoft® Visual C#® 2010: An
Introduction to Object-Oriented
Programming, Fourth Edition
Joyce Farrell
© 2011 Course Technology, Cengage Learning
ALL RIGHTS RESERVED. No part of this work covered by the copyright
herein may be reproduced, transmitted, stored, or used in any form or by
any means—graphic, electronic, or mechanical, including but not limited
to photocopying, recording, scanning, digitizing, taping, Web distribution,
information networks, or information storage and retrieval systems, except
as permitted under Section 107 or 108 of the 1976 United States Copyright
Act—without the prior written permission of the publisher.
Publisher: Nicole Pinard
Executive Editor: Marie Lee
Acquisitions Editor: Amy Jollymore
Senior Product Manager: Alyssa Pratt
Development Editor: Dan Seiter
Content Project Manager: Lisa Weidenfeld
Manufacturing Buyer: Julio Esperas
Proofreader: Brandy Lilly
Copyeditor: Michael Beckett
Indexer: Sharon Hilgenberg
Art Director: Faith Brosnan
Text Designer: Shawn Girsberger
Cover Photo: iStockphoto.com/Dimitrije
Cover Designer: Bruce Bond
Editorial Assistant: Jacqueline Lacaire
Art Director: Marissa Falco
Marketing Manager: Adam Marsh
Quality Assurance: Chris Scriver and
Danielle Shaw
Compositor: Integra
For product information and technology assistance, contact us at
Cengage Learning Customer & Sales Support, 1-800-354-9706
For permission to use material from this text or product,
submit all requests online at www.cengage.com/permissions
Further permissions questions can be e-mailed to
Library of Congress Control Number: 2010930061
ISBN-13: 978-0-538-47951-6
ISBN-10: 0-538-47951-5
Course Technology
20 Channel Center Street
Boston, MA 02210
USA
Cengage Learning is a leading provider of customized learning solutions
with o ce locations around the globe, including Singapore, the United
Kingdom, Australia, Mexico, Brazil, and Japan. Locate your local o ce at:
www.cengage.com/global
Cengage Learning products are represented in Canada by
Nelson Education, Ltd.
To learn more about Course Technology, visit www.cengage.com/
coursetechnology
To learn more about Cengage Learning, visit www.cengage.com
Purchase any of our products at your local college store or at our preferred
online store www.cengagebrain.com
Some of the product names and company names used in this book have
been used for identifi cation purposes only and may be trademarks or
registered trademarks of their respective manufacturers and sellers.
Any fi ctional data related to people, companies, or URLs used throughout
this book is intended for instructional purposes only. At the time this book
was printed, any such data was fi ctional and not belonging to any real
people or companies.
Course Technology, a part of Cengage Learning, reserves the right to revise this
publication and make changes from time to time in its content without notice.
The programs in this book are for instructional purposes only. They have
been tested with care, but are not guaranteed for any particular intent
beyond educational purposes. The author and the publisher do not o er
any warranties or representations, nor do they accept any liabilities with
respect to the programs.
Printed in the United States of America
1 2 3 4 5 6 7 14 13 12 11 10
833369278.004.png 833369278.005.png 833369278.006.png 833369278.007.png 833369278.008.png 833369278.009.png 833369278.010.png 833369278.011.png 833369278.012.png 833369278.013.png 833369278.014.png 833369278.015.png 833369278.016.png 833369278.017.png 833369278.018.png 833369278.019.png 833369278.020.png 833369278.021.png
Brief Contents
iii
CHAPTER 1
A First Program Using C# . . . . . . . . . 1
CHAPTER 2
Using Data . . . . . . . . . . . . . . . . 49
CHAPTER 3
Using GUI Objects and the Visual
Studio IDE . . . . . . . . . . . . . . . 103
CHAPTER 4
Making Decisions . . . . . . . . . . . . 142
CHAPTER 5
Looping . . . . . . . . . . . . . . . . 194
CHAPTER 6
Using Arrays . . . . . . . . . . . . . . 232
CHAPTER 7
Using Methods . . . . . . . . . . . . . 273
CHAPTER 8
Advanced Method Concepts . . . . . . . . 315
CHAPTER 9
Using Classes and Objects . . . . . . . . 354
CHAPTER 10
Introduction to Inheritance . . . . . . . . 427
CHAPTER 11
Exception Handling . . . . . . . . . . . 490
CHAPTER 12
Using Controls . . . . . . . . . . . . . 540
CHAPTER 13
Handling Events . . . . . . . . . . . . . 606
CHAPTER 14
Files and Streams . . . . . . . . . . . . 656
CHAPTER 15
Using LINQ to Access Data in C#
Programs. . . . . . . . . . . . . . . . 708
833369278.022.png 833369278.023.png 833369278.024.png 833369278.025.png 833369278.026.png 833369278.027.png
 
Zgłoś jeśli naruszono regulamin