Professional
C# 2008
Christian Nagel
Bill Evjen
Jay Glynn
Morgan Skinner
Karli Watson
Wiley Publishing, Inc.
ffirs.indd v
2/19/08 5:35:27 PM
ffirs.indd iv
2/19/08 5:35:27 PM
Professional
C# 2008
Acknowledgments .............................................................................................................. xiii
Introduction .......................................................................................................................xlvii
Part I: The C# Language
Chapter
Chapter
Chapter
Chapter
Chapter
Chapter
Chapter
Chapter
Chapter
Chapter
Chapter
Chapter
Chapter
Chapter
1: .NET Architecture ..................................................................................................3
2: C# Basics ...........................................................................................................25
3: Objects and Types ...............................................................................................75
4: Inheritance ........................................................................................................101
5: Arrays ...............................................................................................................121
6: Operators and Casts ..........................................................................................141
7: Delegates and Events ........................................................................................177
8: Strings and Regular Expressions ........................................................................203
9: Generics ...........................................................................................................223
10: Collections ......................................................................................................247
11: Language Integrated Query ..............................................................................297
12: Memory Management and Pointers ..................................................................329
13: Reflection .......................................................................................................357
14: Errors and Exceptions ......................................................................................377
Part II: Visual Studio
Chapter 15: Visual Studio 2008 ..........................................................................................401
Chapter 16: Deployment .....................................................................................................443
Part III: Base Class Libraries
Chapter
Chapter
Chapter
Chapter
Chapter
Chapter
Chapter
Chapter
17:
18:
19:
20:
21:
22:
23:
24:
Assemblies ......................................................................................................469
Tracing and Events ..........................................................................................509
Threading and Synchronization .........................................................................533
Security ..........................................................................................................583
Localization .....................................................................................................639
Transactions ...................................................................................................679
Windows Services ...........................................................................................715
Interoperability ................................................................................................749
(Continued)
ffirs.indd i
2/19/08 5:35:26 PM
Part IV: Data
Chapter
Chapter
Chapter
Chapter
Chapter
Chapter
25: Manipulating Files and the Registry .................................................................791
26: Data Access ....................................................................................................845
27: LINQ to SQL .....................................................................................................895
28: Manipulating XML............................................................................................921
29: LINQ to XML ....................................................................................................967
30:.NET Programming with SQLServer ....................................................................985
Part V: Presentation
Chapter
Chapter
Chapter
Chapter
Chapter
Chapter
Chapter
Chapter
Chapter
Chapter
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
Windows Forms .............................................................................................1017
Data Binding .................................................................................................1061
Graphics with GDI+ ........................................................................................1093
Windows Presentation Foundation ..................................................................1149
Advanced WPF ..............................................................................................1199
Add-Ins .........................................................................................................1251
ASP.NET Pages ..............................................................................................1273
ASP.NET Development ...................................................................................1311
ASP.NET AJAX ...............................................................................................1355
Visual Studio Tools for Office .........................................................................1385
Part VI: Communication
Chapter
Chapter
Chapter
Chapter
Chapter
Chapter
Chapter
Chapter
41:
42:
43:
44:
45:
46:
47:
48:
Accessing the Internet ..................................................................................1423
Windows Communication Foundation .............................................................1455
Windows Workflow Foundation .......................................................................1487
Enterprise Services ........................................................................................1527
Message Queuing ..........................................................................................1555
Directory Services .........................................................................................1587
Peer-to-Peer Networking ................................................................................1625
Syndication ...................................................................................................1643
Part VII: Appendices
Appendix A: ADO.NET Entity Framework ............................................................................1655
Appendix B: C#, Visual Basic, and C++/CLI ......................................................................1681
Appendix C: Windows Vista and Windows Server 2008 ......................................................1711
Index ...............................................................................................................................1731
ffirs.indd ii
2/19/08 5:35:27 PM
Get more
from Wrox.
978-0-470-18757-9
978-0-470-19137-8
978-0-470-19136-1
Available wherever books are sold or visit wrox.com
badvert.indd 1789
2/19/08 5:36:13 PM
Now you can access more than 200 complete Wrox books
online, wherever you happen to be! Every diagram, description,
screen capture, and code sample is available with your
subscription to the Wrox Reference Library. For answers when
and where you need them, go to wrox.books24x7.com and
subscribe today!
badvert.indd 1790
2/19/08 5:36:14 PM