2010 - Professional C# 4 and .NET 4 (Wrox).pdf

(43057 KB) Pobierz
Professional C# 4 and .NET 4
Join the discussion @ p2p.wrox.com
Wrox Programmer to Programmer™
C# 4 and .NET 4
Professional
568141868.033.png 568141868.034.png 568141868.035.png 568141868.036.png 568141868.001.png 568141868.002.png 568141868.003.png 568141868.004.png 568141868.005.png 568141868.006.png 568141868.007.png 568141868.008.png 568141868.009.png 568141868.010.png 568141868.011.png 568141868.012.png 568141868.013.png 568141868.014.png 568141868.015.png 568141868.016.png 568141868.017.png 568141868.018.png
 
568141868.019.png 568141868.020.png 568141868.021.png 568141868.022.png 568141868.023.png 568141868.024.png
Related Wrox Books
Beginning ASP.NET 4: in C# and VB
ISBN: 9780470502211
This introductory book offers helpful examples and step-by-step format and has code examples written in both C# and Visual
Basic. With this book you will gradually build a Web site example that takes you through the processes of building basic ASP.NET
Web pages, adding features with pre-built server controls, designing consistent pages, displaying data, and more.
Beginning Microsoft Visual Basic 2010
ISBN: 9780470502228
This book not only shows you how to write Windows applications, Web applications with ASP.NET, and Windows mobile and embedded CE
apps with Visual Basic 2010, but you’ll also get a thorough grounding in the basic nuts-and-bolts of writing good code. You’ll be exposed
to the very latest VB tools and techniques with coverage of both the Visual Studio 2010 and .NET 4 releases.
Beginning Microsoft Visual C# 2010
ISBN: 9780470502266
Using this book, You will first cover the fundamentals such as variables, flow control, and object-oriented programming and gradually build
your skills for Web and Windows programming, Windows forms, and data access. Step-by-step directions walk you through processes and
invite you to “Try it Out,” at every stage. By the end, you’ll be able to write useful programming code following the steps you’ve learned in
this thorough, practical book. If you’ve always wanted to master Visual C# programming, this book is the perfect one-stop resource.
Professional ASP.NET 4: in C# and VB
ISBN: 9780470502204
Written by three highly recognized and regarded ASP.NET experts, this book provides all-encompassing coverage on ASP.NET 4 and offers a
unique approach of featuring examples in both C# and VB, as is the incomparable coverage of core ASP.NET. After a fast-paced refresher
on essentials such as server controls, the book delves into expert coverage of all the latest capabilities of ASP.NET 4. You’ll learn site
navigation, personalization, membership, role management, security, and more.
Professional Visual Basic 2010 and .NET 4
ISBN: 9780470502242
If you’ve already covered the basics and want to dive deep into VB and .NET topics that professional programmers use most, this is your
guide. You’ll explore all the new features of Visual Basic 2010 as well as all the essential functions that you need, including .NET features
such as LINQ to SQL, LINQ to XML, WCF, and more. Plus, you’ll examine exception handling and debugging, Visual Studio features, and
ASP.NET web programming.
Visual Basic 2010 Programmer’s Reference
ISBN: 9780470499832
Visual Basic 2010s Programmer’s Reference is a language tutorial and a reference guide to the 2010 release of Visual Basic. The tutorial
provides basic material suitable for beginners but also includes in-depth content for more advanced developers.
Professional Visual Studio 2010
ISBN: 9780470548653
Written by an author team of veteran programmers and developers, this book gets you quickly up to speed on what you can expect from
Visual Studio 2010. Packed with helpful examples, this comprehensive guide examines the features of Visual Studio 2010, and walks you
through every facet of the Integrated Development Environment (IDE), from common tasks and functions to its powerful tools.
WPF Programmer’s Reference: Windows Presentation Foundation with C# 2010 and .NET 4
ISBN: 9780470477229
Written by a leading expert on Microsoft graphics programming, this richly illustrated book provides an introduction to WPF
development and explains fundamental WPF concepts.
568141868.025.png
 
 
 
568141868.026.png 568141868.027.png 568141868.028.png 568141868.029.png 568141868.030.png 568141868.031.png 568141868.032.png
Professional
C# 4 and .neT 4
inTroduCTion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . li
⊲ The C# language
ChaPTer 1: .NET Architecture. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
ChaPTer 2: Core C# . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
ParT i:
ChaPTer 3: Objects and Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
ChaPTer 4: Inheritance. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
ChaPTer 5: Generics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
ChaPTer 6: Arrays and Tuples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
ChaPTer 7: Operators and Casts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .151
ChaPTer 8: Delegates, Lambdas, and Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183
ChaPTer 9: Strings and Regular Expressions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207
ChaPTer 10: Collections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .225
ChaPTer 11: Language Integrated Query. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267
ChaPTer 12: Dynamic Language Extensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .295
ChaPTer 13: Memory Management and Pointers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 307
ChaPTer 14: Relection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
333
ChaPTer 15: Errors and Exceptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 351
o
ChaPTer 16: Visual Studio 2010 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
373
ParT ii: Visual sTudi
ChaPTer 17: Deployment. ................................................................................................................ . . . . . . 407
n
ChaPTer 18: Assemblies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 431
ChaPTer 19: Instrumentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 461
ParT iii: foundaTio
ChaPTer 20: Threads, Tasks, and Synchronization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 491
ChaPTer 21: Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .545
Continues
ChaPTer 22: Localization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .569
ChaPTer 23: System.Transactions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .605
ChaPTer 24: Networking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 637
ChaPTer 25: Windows Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 667
ChaPTer 26: Interop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .695
ChaPTer 27: Core XAML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 727
ChaPTer 28: Managed Extensibility Framework . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 747
ChaPTer 29: Manipulating Files and the Registry . ................................................................... . . . . . . 771
ParT iV: daTa
ChaPTer 30: Core ADO.NET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 817
ChaPTer 31: ADO.NET Entity Framework. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 861
ChaPTer 32: Data Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .885
ChaPTer 33: Manipulating XML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .903
ChaPTer 34: .NET Programming with SQL Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .955
ParT V: PresenTaTion
ChaPTer 35: Core WPF. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
983
ChaPTer 36: Business Applications with WPF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1035
ChaPTer 37: Creating Documents with WPF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1075
ChaPTer 38: Silverlight . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1095
ChaPTer 39: Windows Forms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1117
ChaPTer 40: Core ASP.NET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1149
ChaPTer 41: ASP.NET Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1185
ChaPTer 42: ASP.NET Dynamic Data and MVC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1243
ChaPTer 43: Windows Communication Foundation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1279
ChaPTer 44: Windows Worklow Foundation 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1309
ChaPTer 45: Peer-to-Peer Networking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1339
ChaPTer 46: Message Queuing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1357
ChaPTer 47: Syndication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1387
ParT Vi: CommuniCaTion
aPPendiX: Guidelines for Windows 7 and Windows Server 2008 R2 . . . . . . . . . . . . . . . . . . . . . 1397
indeX. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1417
online ChaPTers
ChaPTer 48: Graphics with GDI+ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .OC1
ChaPTer 49: Visual Studio Tools for Oice. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . OC49
ChaPTer 50: Managed Add-In Framework . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . OC77
ChaPTer 51: Enterprise Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . OC97
ChaPTer 52: Directory Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . OC123
ChaPTer 53: C#, Visual Basic, C++/CLI, and F# . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . OC157
ChaPTer 54: .NET Remoting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .OC191
ChaPTer 55: Web Services with ASP.NET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .OC233
ChaPTer 56: LINQ to SQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .OC255
ChaPTer 57: Windows Worklow Foundation 3.0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .OC279
Zgłoś jeśli naruszono regulamin