[ Pobierz całość w formacie PDF ]
Joe Mayo
C# 3.0
With the .NET Framework 3.5
UNLEASHED
Second Edition
800 East 96th Street, Indianapolis, Indiana 46240 USA
 C# 3.0 Unleashed
With the .NET Framework 3.5
Copyright © 2008 by Pearson Education, Inc.
All rights reserved. No part of this book shall be reproduced, stored in a retrieval
system, or transmitted by any means, electronic, mechanical, photocopying, recording,
or otherwise, without written permission from the publisher. No patent liability is
assumed with respect to the use of the information contained herein. Although every
precaution has been taken in the preparation of this book, the publisher and author
assume no responsibility for errors or omissions. Nor is any liability assumed for
damages resulting from the use of the information contained herein.
ISBN-13: 978-0-672-32981-4
ISBN-10: 0-672-32981-6
Library of Congress Cataloging-in-Publication Data
Mayo, Joseph.
C# 3.0 unleashed : with the .NET Framework 3.5 / Joe Mayo. — 1st ed.
p. cm.
ISBN 978-0-672-32981-4
1. C# (Computer program language) 2. Microsoft .NET Framework. I.
Title.
QA76.73.C154M38 2008
006.7’882—dc22
Editor-in-Chief
Karen Gettman
Executive Editor
Neil Rowe
Acquisitions Editor
Brook Farling
Development Editor
Mark Renfrow
Managing Editor
Kristy Hart
Project Editor
Andrew Beaster
Copy Editor
Keith Cline
Indexer
Brad Herriman
2008026117
Printed in the United States of America
First Printing June 2008
Trademarks
All terms mentioned in this book that are known to be trademarks or service marks
have been appropriately capitalized. Sams Publishing cannot attest to the accuracy of
this information. Use of a term in this book should not be regarded as affecting the
validity of any trademark or service mark.
Warning and Disclaimer
Every effort has been made to make this book as complete and as accurate as possi-
ble, but no warranty or fitness is implied. The information provided is on an “as is”
basis. The authors and the publisher shall have neither liability nor responsibility to any
person or entity with respect to any loss or damages arising from the information
contained in this book.
Bulk Sales
Sams Publishing offers excellent discounts on this book when ordered in quantity for
bulk purchases or special sales. For more information, please contact
U.S. Corporate and Government Sales
1-800-382-3419
corpsales@pearsontechgroup.com
For sales outside of the U.S., please contact
International Sales
international@pearson.com
Proofreader
San Dee Phillips
Technical Editors
Tony Gravagno
Todd Meister
J. Boyd Nolan
Publishing
Coordinator
Cindy Teeters
Cover Designer
Gary Adair
Composition
Jake McFarland
Contents at a Glance
Introduction
...................................................................................
1
Part 1 Learning C# Basics
1
Introducing the .NET Platform
...........................................................
9
2
Getting Started with C# and Visual Studio 2008
..................................
19
3
Writing C# Expressions and Statements
.............................................
49
4
Understanding Reference Types and Value Types
.................................
79
5
Manipulating Strings
.....................................................................
105
6
Arrays and Enums
........................................................................
131
7
Debugging Applications with Visual Studio 2008
...............................
147
Part 2 Object-Oriented Programming with C#
8
Designing Objects
........................................................................
163
9
Designing Object-Oriented Programs
...............................................
177
10
Coding Methods and Custom Operators
...........................................
201
11
Error and Exception Handling
........................................................
231
12
Event-Based Programming with Delegates and Events
.........................
249
13
Naming and Organizing Types with Namespaces
...............................
273
14
Implementing Abstract Classes and Interfaces
...................................
287
Part 3 Applying Advanced C# Language Features
15
Managing Object Lifetime
..............................................................
319
16
Declaring Attributes and Examining Code with Reflection
...................
339
17
Parameterizing Type with Generics and Writing Iterators
....................
365
18
Using Lambda Expressions and Expression Trees
................................
397
Part 4 Learning LINQ and .NET Data Access
19
Accessing Data with LINQ
..............................................................
409
20
Managing Data with ADO.NET
.......................................................
441
21
Manipulating XML Data
................................................................
461
22
Creating Data Abstractions with the ADO.NET Entity Framework
.........
475
23
Working with Data in the Cloud with ADO.NET Data Services
.............
491
Part 5 Building Desktop User Interfaces
24
Taking Console Applications to the Limit
.........................................
507
25
Writing Windows Forms Applications
..............................................
515
26
Creating Windows Presentation Foundation (WPF) Applications
..........
547
Part 6 Designing Web User Interfaces
27
Building Web Applications with ASP.NET
.........................................
583
28
Adding Interactivity to Your Web Apps with ASP.NET AJAX
.................
619
29
Crafting Rich Web Applications with Silverlight
................................
641
Part 7 Communicating with .NET Technologies
30
Using .NET Network Communications Technologies
..........................
661
31
Building Windows Service Applications
............................................
679
32
Remoting
....................................................................................
695
33
Writing Traditional ASMX Web Services
...........................................
713
34
Creating Web and Services with WCF
..............................................
725
Part 8 Examining .NET Application Architecture and Design
35
Using the Visual Studio 2008 Class Designer
.....................................
743
36
Sampling Design Patterns in C#
......................................................
755
37
Building N-Tier/Layer Systems
........................................................
779
38
Automating Logic with Windows Workflow
......................................
797
Part 9 Surveying More of the .NET Framework Class Library
39
Managing Processes and Threads
.....................................................
817
40
Localizing and Globalization
..........................................................
831
41
Performing Interop (P/Invoke and COM) and Writing Unsafe Code
......
853
42
Instrumenting Applications with System.Diagnostics Types
.................
879
Part 10 Deploying Code
43
Assemblies and Versioning
.............................................................
921
44
Securing Code
..............................................................................
933
45
Creating Visual Studio 2008 Setup Projects
.......................................
947
46
Deploying Desktop Applications
.....................................................
955
47
Publishing Web Applications
..........................................................
961
Part 11 Appendixes
A
Compiling Programs
.....................................................................
969
B
Getting Help with the .NET Framework
............................................
973
Index
.........................................................................................
977
[ Pobierz całość w formacie PDF ]

  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • grabaz.htw.pl
  •