Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
C# and the NET Platform, Second Edition - Andrew Troelsen.pdf
Скачиваний:
67
Добавлен:
24.05.2014
Размер:
22.43 Mб
Скачать

C# and the .NET Platform, Second Edition

by Andrew Troelsen

ISBN:1590590554

Apress © 2003 (1200 pages)

This comprehensive text starts with a brief overview of the C# language and then quickly moves to key technical and architectural issues for .NET developers.

Table of Contents

C# and the .NET Platform, Second Edition

Introduction

Part One - Introducing C# and the .NET Platform

Chapter 1 - The Philosophy of .NET

Chapter 2 - Building C# Applications

Part Two - The C# Programming Language

Chapter 3 - C# Language Fundamentals

Chapter 4 - Object-Oriented Programming with C#

Chapter 5 - Exceptions and Object Lifetime

Chapter 6 - Interfaces and Collections

Chapter 7 - Callback Interfaces, Delegates, and Events

Chapter 8 - Advanced C# Type Construction Techniques

Part Three - Programming with .NET Assemblies

Chapter 9 - Understanding .NET Assemblies

Chapter 10 - Processes, AppDomains, Contexts, and Threads

Chapter 11 - Type Reflection, Late Binding, and Attribute-Based Programming

Part Four - Leveraging the .NET Libraries

Chapter 12 - Object Serialization and the .NET Remoting Layer

Chapter 13 - Building a Better Window (Introducing Windows Forms)

Chapter 14 - A Better Painting Framework (GDI+)

Chapter 15 - Programming with Windows Forms Controls

Chapter 16 - The System.IO Namespace

Chapter 17 - Data Access with ADO.NET

Part Five - Web Applications and XML Web Services

Chapter 18 - ASP.NET Web Pages and Web Controls

Chapter 19 - ASP.NET Web Applications

Chapter 20 - XML Web Services

Index

List of Figures

List of Tables

C# and the .NET Platform, Second Edition

 

Back Cover

ISBN:1590590554

by Andrew Troelsen

C# and the .NET Platform, Second Edition starts with a brief overview of the C# language and then quickly moves

Apress © 2003 (1200 pages)

to key technical and architectural issues for .NET developers. Not only is there extensive coverage of the .NET Framework, but AndrewThis comprTroelsenhenalsoiveshowstext startsprogrammerswith a briefwhatoverviewthey needof theto know about such necessary, but subtle, areas as theC#properlanguseageofandthreadsthen andquicklyhowmtovleverages to keythetechnicalnew .NETandremoting protocol. Readers will also see how to use C# forarchitecturalGUI applicationsissues forwith.NETa completedevelopersdiscussion. of Windows Forms, custom controls, and GDI+.

There are equally useful discussions on how to use C# and .NET for Web development, Web services, and data

access using ADO.NET. From Windows-based to Web-based applications, it's all here. There are detailed discussions

Table of Contents

of every aspect of .NET development and useful examples with no toy code. C# and the .NET Platform, Second Edition

Introduction About the Author

Part One - Introducing C# and the .NET Platform

Andrew Troelsen is a partner, trainer, and consultant at Intertech-Inc., a .NET and J2EE developer education center Chapter 1 - The Philosophy of .NET

(http://www.intertech-inc.com). He is a leading authority on both .NET and COM. His earlier five-star treatment of

Chapter 2 - Building C# Applications

traditional COM in the best-selling Developer's Workshop to COM and ATL 3.0 is mirrored in his latest book, COM andPart.NETTwoInteroperability,- The C# Programmingand his Languageaward-winning treatment of C# in C# and the .NET Platform, as well as his five-

star investigation of VB .NET in Visual Basic .NET and the .NET Platform: An Advanced Guide . He has a degree in Chapter 3 - C# Language Fundamentals

mathematical linguistics and South Asian studies from the University of Minnesota and is a frequent speaker at

Chapter 4 - Object-Oriented Programming with C# numerous .NET-related conferences.

Chapter 5 - Exceptions and Object Lifetime

Chapter 6 - Interfaces and Collections

Chapter 7 - Callback Interfaces, Delegates, and Events

Chapter 8 - Advanced C# Type Construction Techniques

Part Three - Programming with .NET Assemblies

Chapter 9 - Understanding .NET Assemblies

Chapter 10 - Processes, AppDomains, Contexts, and Threads

Chapter 11 - Type Reflection, Late Binding, and Attribute-Based Programming

Part Four - Leveraging the .NET Libraries

Chapter 12 - Object Serialization and the .NET Remoting Layer

Chapter 13 - Building a Better Window (Introducing Windows Forms)

Chapter 14 - A Better Painting Framework (GDI+)

Chapter 15 - Programming with Windows Forms Controls

Chapter 16 - The System.IO Namespace

Chapter 17 - Data Access with ADO.NET

Part Five - Web Applications and XML Web Services

Chapter 18 - ASP.NET Web Pages and Web Controls

Chapter 19 - ASP.NET Web Applications

Chapter 20 - XML Web Services

Index

List of Figures

List of Tables

C# and theC# and.NETthe .NETPlatform,tform, SecondSecondEdition Edition

by Andrew Troelsen

ISBN:1590590554

ANDREW TROELSEN

 

Apress © 2003 (1200 pages)

 

comprehensive text starts with a brief overview of the language and then quickly moves to key technical and

architectural issues for .NET developers.

Table of Contents

Copyright © 2003 by Andrew Troelsen

C# and the .NET Platform, Second Edition

Introduction

Part One - Introducing C# and the .NET Platform

All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means,

Chapter 1 - The Philosophy of .NET

electronic or mechanical, including photocopying, recording, or by any information storage or retrieval

Chapter 2 - Building C# Applications

system, without the prior written permission of the copyright owner and the publisher.

Part Two - The C# Programming Language

ISBN: 1-59059-055-4

Chapter 3 - C# Language Fundamentals

ChapterPrinted4and- Objectbound-Orientedin the UnitedProgrammingStates ofwithAmericaC# 12345678910

Chapter 5 - Exceptions and Object Lifetime

Trademarked names may appear in this book. Rather than use a trademark symbol with every occurrence

Chapter 6 - Interfaces and Collections

of a trademarked name, we use the names only in an editorial fashion and to the benefit of the trademark

Chapter 7 - Callback Interfaces, Delegates, and Events owner, with no intention of infringement of the trademark.

Chapter 8 - Advanced C# Type Construction Techniques

PartTechnicalThree - ProgrammingReviewers: Gregorywith .NETA.AsseBeamer,bliesGary Cornell, Eric Gunnerson, Joe Nalewabau, Kent

ChapterSharkey,9 Nick- UnderstandingSymmonds,.NETPradeepAssembliesTapadiya

Chapter 10 - Processes, AppDomains, Contexts, and Threads

Editorial Directors: Dan Appleman, Gary Cornell, Simon Hayes, Martin Streicher, Karen Watterson, John

Chapter 11 - Type Reflection, Late Binding, and Attribute-Based Programming

Zukowski

Part Four - Leveraging the .NET Libraries

Chapter 12 - Object Serialization and the .NET Remoting Layer

Assistant Publisher: Grace Wong

Chapter 13 - Building a Better Window (Introducing Windows Forms)

ChapterCopy Editors:14 - A BetterAnnePaintingFriedmanFrameworkand Ami(GDI+)Knox

Chapter 15 - Programming with Windows Forms Controls

Proofreader: Liz Berry

Chapter 16 - The System.IO Namespace

Chapter 17 - Data Access with ADO.NET

Production Goddess: Susan Glinert Stevens

Part Five - Web Applications and XML Web Services

ChapterIndexer:18Ron- ASPStrauss.NET Web Pages and Web Controls

Chapter 19 - ASP.NET Web Applications

Artist and Cover Designer: Kurt Krames

Chapter 20 - XML Web Services

Index

Manufacturing Manager: Tom Debolski

List of Figures

ListDistributedof Tablesto the book trade in the United States by Springer-Verlag New York, Inc., 175 Fifth Avenue, New York, NY, 10010 and outside the United States by Springer-Verlag GmbH & Co. KG, Tiergartenstr. 17, 69112 Heidelberg, Germany.

In the United States: phone 1-800-SPRINGER, email <orders@springer-ny.com>, or visit http://www.springer-ny.com. Outside the United States: fax +49 6221 345229, email <orders@springer.de>, or visit http://www.springer.de.

For information on translations, please contact Apress directly at 2560 Ninth Street, Suite 219, Berkeley, CA 94710. Phone 510-549-5930, fax 510-549-5939, email <info@apress.com>, or visit http://www.apress.com.

The information in this book is distributed on an "as is" basis, without warranty. Although every precaution has been taken in the preparation of this work, neither the author(s) nor Apress shall have any liability to any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly by the information contained in this work.

education center (http://www.intertech-inc.com
Part One - Introducing C# and the .NET Platform
Luv ya, Damn Kid
C# and the .NET Platform, Second Edition
by Andrew Troelsen
The source code for this book is available to readers at section.

http://www.apress.com in the Downloads

ISBN:1590590554

I would like to dedicateApressthis© 2003book(1200topages)my father, Wally Troelsen. Thanks, Dad, for all of your support over the years and theThisyearscomprehensiveto com e. text starts with a brief overview of the

C# language and then quickly moves to key technical and architectural issues for .NET developers.

TableAboutof Contentsthe Author

C# and the .NET Platform, Second Edition

Andrew Troelsen is a partner, trainer, and consultant at Intertech-Inc., a .NET and J2EE developer

Introduction

). He is a leading authority on both .NET and

COM. His earlier five-star treatment of traditional COM in the best-selling Developer's Workshop to COM

Chapter 1 - The Philosophy of .NET

and ATL 3.0 is mirrored in his latest book, COM and .NET Interoperability, and his award-winning

Chapter 2 - Building C# Applications

treatment of C# in C# and the .NET Platform, as well as his five-star investigation of VB .NET in Visual

Part Two - The C# Programming Language

Basic .NET and the .NET Platform: An Advanced Guide. He has a degree in mathematical linguistics and

Chapter 3 - C# Language Fundamentals

South Asian studies from the University of Minnesota and is a frequent speaker at numerous .NET-related

Chapter 4 - Object-Oriented Programming with C# conferences.

Chapter 5 - Exceptions and Object Lifetime

ChapterHe currently6 - Intlivesrfacesin Minneapolis,and CollectionsMinnesota, with his wife Amanda, and spends his free time investigating

.NET and waiting for the Wild to win the Stanley Cup, the Vikings to win the Super Bowl (before he retires

Chapter 7 - Callback Interfaces, Delegates, and Events

would be nice), and the Timberwolves to grab numerous NBA championship titles.

Chapter 8 - Advanced C# Type Construction Techniques

Part Three - Programming with .NET Assemblies

Acknowledgments

Chapter 9 - Understanding .NET Assemblies

Chapter 10 - Processes, AppDomains, Contexts, and Threads

Completing the second edition of C# and the .NET Platform would have been completely impossible Chapterwithout11the-assistanceType Refl ction,and talentLate Binding,offeredandby numerousAttribute-BasedindividualsProgramming. First of all, many thanks to my copy

Parteditors,FourAnne- LeveragingFriedmantheand.NETAmiLibrariesKnox. Both of you, as always, did an outstanding job massaging my raw

Chaptermanuscript12 - intoObjecta polishedSerializationproductand.the(See.NETyouRemotingboth on theLayernextbook?) Next, I must thank the numerous

Chaptertechnical13reviewers- Building whoa BettertookWindowthe time(Introducingto read theseWindowschaptersForms)for any coding faux pas: Gregory A. Beamer, ChapterGary Cornell,14 - A BetterEric Gunnerson,Pai ting FramJoeworkNalewabau,(GDI+) Kent Sharkey, Nick Symmonds, and Pradeep Tapadiya.

Special thanks to Beth Christmas, Ron Strauss, Susan Glinert Stevens, and Liz Berry, whose combined

Chapter 15 - Programming with Windows Forms Controls

efforts formatted, indexed, and finalized this text to completion. Of course, any remaining errors (spelling,

Chapter 16 - The System.IO Namespace

coding, or otherwise) that may have snuck into this book are my sole responsibility.

Chapter 17 - Data Access with ADO.NET

Part Five - Web Applications and XML Web Services

I also must say a huge thanks to all of those at Apress who have made a publishing company that is a

Chapter 18 - ASP.NET Web Pages and Web Controls

pleasure to work with. Thanks to Hollie Fisher (for many things), Doris Wong (for many more things), and

Chapter 19 - ASP.NET Web Applications

Grace Wong, my chaka friend, for not totally blasting me into pieces when I abused the phrase "I'll get it to

Chapter 20 - XML Web Services you today" one too many times.

Index

ListThanksof Figuresto my friends and family who (once again) tolerated my lack of time and sometimes grumpy

demeanor. More thanks to my friends at Intertech-Inc. (not Tom Salonek, who I still don't like much). Your

List of Tables

support (directly and indirectly) is greatly appreciated. Finally, thanks to my wife Mandy and "all the kids" for their love and encouragement.

Соседние файлы в предмете Программирование