没有合适的资源?快使用搜索试试~ 我知道了~
C#与.NET3.5高级程序设计第四版.pdf
4星 · 超过85%的资源 需积分: 10 8 下载量 15 浏览量
2012-02-27
13:28:47
上传
评论
收藏 21.46MB PDF 举报
温馨提示
试读
1400页
C#是微软推出的一种面向对象开发语言,其能让已有经验的开发人员轻松上手,并在很短的时间内就可以使用C#高效地进行工作。这是读者选择C#的原因。目前最新的C#版本就是.NET 3.5框架上的C# 3.0。本书借助Visual Studio 2008开发工具,详细介绍了.NET框架中的4大开发利器:LINQ、WPF、WF和WCF。LINQ是集成查询语言,它在对象和数据之间建立一种对应关系,可以使用访问内存对象的方式查询数据集合。WPF是C#开发的图形平台,它改变了传统Windows程序员的开发观念和开发方式。WF不是一个独立的工作流应用程序,它提供了一些类库用于辅助工作流应用程序的开发,并提供了实现工作流应用程序时所需要实现的一些机制,比如持久化、补偿、跟踪机制等。WCF是远程通讯技术,其传承了SOA设计的优势。
资源推荐
资源详情
资源评论
this print for content only—size & color not accurate
7" x 9-1/4" / CASEBOUND / MALLOY
(2.125 INCH BULK -- 1,400 pages -- 40# Thor)
The eXPeRT’s VOIce
®
In .neT
Andrew Troelsen
Pro
C# 2008
.NET 3.5 Platform
Exploring the .NET universe using curly brackets
BOOks fOR PROfessIOnals By PROfessIOnals
®
Pro C# 2008 and the .NET 3.5 Platform, FOURTH EDITION
Dear Reader,
The first edition of this book was released at the 2001 Tech·Ed conference in
Atlanta, Georgia. (I honestly can’t believe it was that long ago!) Since that time,
this text has been revised, tweaked, and enhanced to account for the changes
found within each release of the .NET platform (1.1, 2.0, 3.0, and now 3.5).
.NET 3.0 was more of an augmentative release, essentially providing three new
APIs: Windows Presentation Foundation (WPF), Windows Communication
Foundation (WCF), and Windows Workflow Foundation (WF). As you would
expect, coverage of the “W’s” has been expanded upon a great deal from the
previous Special Edition of this text.
Unlike .NET 3.0, .NET 3.5 provides dozens of new C# language features and .NET
APIs. This edition of the book will walk you through all of this new material using
the same readable approach (at least that is what I have been told!) as found
in the prior editions. Rest assured, you’ll find detailed coverage of Language
Integrated Query (LINQ), the C# 2008 language changes (automatic properties,
extension methods, anonymous types, etc.), and the numerous bells and whistles
of Visual Studio 2008.
If you’re checking out this book for the first time, understand that it targets
experienced software professionals and/or students of computer science (so
please don’t expect three chapters devoted to “for loops”). The mission of this
text is to provide you with a rock-solid foundation in the C# 2008 programming
language and the core aspects of the .NET platform (OOP, assemblies, file IO,
Windows Forms/WPF, ASP.NET, ADO.NET, WCF, WF, etc.). Once you digest the
information presented in these 33 chapters, you’ll be in a perfect position to
apply this knowledge to your specific programming assignments, and you’ll be
well equipped to explore the .NET universe on your own terms.
Take care and enjoy,
Andrew Troelsen
Microsoft MVP, Visual Developer—Visual C#
THE APRESS ROADMAP
Pro ASP.NET 3.5
in C# 2008
Pro VB 2008 and the
.NET 3.5 Platform
Accelerated C# 2008
Beginning C# 2008
Beginning C# 2008
Databases
Pro C# 2008 and the
.NET 3.5 Platform
Pro LINQ
Pro WPF in C# 2008
C#
Troelsen
cyan
MaGenTa
yellOW
Black
PanTOne 123 c
Author of
Pro VB 2008 and the
.NET 3.5 Platform
COM and .NET
Interoperability
Expert ASP.NET 2.0
Advanced Application
Design
Developer’s Workshop
to COM and ATL 3.0
ISBN-13: 978-1-59059-884-9
ISBN-10: 1-59059-884-9
9 781590 598849
5 5 9 9 9
US $59.99
Shelve in
Programming/
Microsoft/.NET
User level:
Intermediate–Advanced
www.apress.com
SOURCE CODE ONLINE
Free Companion eBook
For a limited time only.
See last page for details.
FOURTH EDITION
FOURTH EDITION
Free Companion eBook Available
Pro
2008
and the
.NET 3.5
Platform
and
the
For a limited time,
get the free, fully searchable
eBook—a $30 value!
See last page for details.
Offer ends June 30, 2008.
For a limited time,
get the free, fully searchable
eBook—a $30 value!
See last page for details.
Offer ends June 30, 2008.
Andrew Troelsen
Pro C# 2008 and the
.NET 3.5 Platform
Fourth Edition
8849FM.qxd 10/19/07 9:45 AM Page i
Pro C# 2008 and the .NET 3.5 Platform, Fourth Edition
Copyright © 2007 by Andrew Troelsen
All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means,
electronic or mechanical, including photocopying, recording, or by any information storage or retrieval
system, without the prior written permission of the copyright owner and the publisher.
ISBN-13: 978-1-59059-884-9
ISBN-10: 1-59059-884-9
Printed and bound in the United States of America 9 8 7 6 5 4 3 2 1
Trademarked names may appear in this book. Rather than use a trademark symbol with every occurrence
of a trademarked name, we use the names only in an editorial fashion and to the benefit of the trademark
owner, with no intention of infringement of the trademark.
Lead Editor: Ewan Buckingham
Technical Reviewer: Gavin Smyth
Editorial Board: Steve Anglin, Ewan Buckingham, Tony Campbell, Gary Cornell, Jonathan Gennick,
Jason Gilmore, Kevin Goff, Jonathan Hassell, Matthew Moodie, Joseph Ottinger, Jeffrey Pepper,
Ben Renow-Clarke, Dominic Shakeshaft, Matt Wade, Tom Welsh
Production Director | Project Manager: Grace Wong
Senior Copy Editors: Ami Knox, Nicole Flores
Associate Production Director: Kari Brooks-Copony
Production Editor: Ellie Fountain
Compositor: Dina Quan
Proofreaders: April Eddy and Liz Welch
Indexer: Broccoli Information Management
Artist: Kinetic Publishing Services, LLC
Cover Designer: Kurt Krames
Manufacturing Director: Tom Debolski
Distributed to the book trade worldwide by Springer-Verlag New York, Inc., 233 Spring Street, 6th Floor,
New York, NY 10013. Phone 1-800-SPRINGER, fax 201-348-4505, e-mail
orders-ny@springer-sbm.com,
or visit http://www.springeronline.com.
For information on translations, please contact Apress directly at 2855 Telegraph Avenue, Suite 600,
Berkeley, CA 94705. Phone 510-549-5930, fax 510-549-5939, e-mail 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 precau-
tion 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 indir
ectly by the information contained in this work.
The source code for this book is available to readers at
http://www.apress.com in the Source Code/
Download section. You will need to answer questions pertaining to this book in order to successfully
do
wnload the code
.
8849FM.qxd 10/19/07 9:45 AM Page ii
This edition of the text is dedicated to Mikko the wonder cat, life at 412, and my wonderful
wife, Amanda, who patiently waited for me to finish yet another book.
8849FM.qxd 10/19/07 9:45 AM Page iii
Contents
About the Author. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvi
About the Technical Reviewer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvii
Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xviii
Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xix
Part 1
■ ■ ■
Introducing C# and the .NET Platform
■CHAPTER 1 The Philosophy of .NET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Understanding the Previous State of Affairs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
The .NET Solution. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Introducing the Building Blocks of the .NET Platform (the CLR, CTS,
and CLS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Additional .NET-Aware Programming Languages. . . . . . . . . . . . . . . . . . . . . . . . . . . 9
An Overview of .NET Assemblies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Understanding the Common Type System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Understanding the Common Language Specification . . . . . . . . . . . . . . . . . . . . . . 20
Understanding the Common Language Runtime . . . . . . . . . . . . . . . . . . . . . . . . . . 22
The Assembly/Namespace/Type Distinction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Exploring an Assembly Using ildasm.exe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Exploring an Assembly Using Lutz Roeder’s Reflector. . . . . . . . . . . . . . . . . . . . . . 31
Deploying the .NET Runtime. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
The Platform-Independent Nature of .NET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
■CHAPTER 2 Building C# Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
The Role of the .NET Framework 3.5 SDK. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Building C# Applications Using csc.exe. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Building .NET
Applications Using TextPad
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
42
Building .NET Applications Using Notepad++. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Building .NET Applications Using SharpDevelop. . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Building .NET
Applications Using Visual C# 2008 Express
. . . . . . . . . . . . . . . . . .
50
Building .NET Applications Using Visual Studio 2008 . . . . . . . . . . . . . . . . . . . . . . 52
A Partial Catalog of Additional .NET Development Tools . . . . . . . . . . . . . . . . . . . . 64
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
iv
8849FM.qxd 10/19/07 9:45 AM Page iv
剩余1399页未读,继续阅读
资源评论
- min_zxm2014-01-31非常好的资源,谢谢楼主!
- caokuanwei2014-08-14挺全的,美中不足的是英文版,谢谢分享!
- 疯老头2013-06-04扫描版的,无奈
hadisiman_ren
- 粉丝: 0
- 资源: 11
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功