Synopses & Reviews
Professional C# 2005 with .NET 3.0 prepares you to program in C#, and it provides the necessary background information on how the .NET architecture works. It provides examples of applications that use a variety of related technologies, including database access, dynamic web pages, advanced graphics, and directory access. The only requirement is that you are familiar with at least one other high-level language used on Windows - C++, VB, or J++. It starts with a tutorial on C# 2005 and the .NET 3.0 Framework. This introduction assumes no prior knowledge of .NET, but it does move rapidly, on the assumption that the reader is an experienced programmer. Once this background knowledge is established, the book starts to sweep through the vast .NET class library, showing how you can use C# to solve various tasks. This comprehensive coverage is one of the key selling points of previous versions of the book, and is maintained and enhanced with this new edition by updating current text, and by adding chapters on WCF (Windows Communication Foundation), WF (Windows Workflow Foundation) and WPF (Windows Presentation Foundation), Arrays, System Transactions, Tracing, and Event Logging. Some reference material is included either as appendices or is available to download from the Wrox website. After the introduction and initial chapter, the book is divided into a number of sections that cover both the C# language and its application in a variety of areas. Coverage includes:
• WCF Windows Communication Foundation
• WF Windows Workflow Foundation
• WPF Windows Presentation Foundation
• Windows Vista
• Arrays, System. Transactions, Tracing, and Event Logging
• Writing Windows applications and Windows services
• Writing web pages and web services with ASP.NET 3.0
• Manipulating XML using C# 2005
• Understanding .NET 3.0 Assemblies
• Using ADO.NET to access databases
• Integration with COM, COM+, and Active Directory
• Distributed applications with .NET 3.0 Remoting
• Generating graphics using C# 2005
• Accessing files and the Registry, and controlling .NET 3.0 security
- Preparing readers to program in C#, this authoritative guide provides the necessary background information on how the .NET architecture works
- Begins with a tutorial on C# 2005 and the .NET 3.0 Framework, then moves through the vast .NET class library, showing how C# can be used to solve various tasks
- Includes coverage of the new .NET 3.0 Framework, Generics, ObjectSpaces, .NET 3.0 in SQL Server, ASP.NET 3.0, Windows Communication Foundation, Windows Workflow Foundation, Windows Presentation Foundation, arrays, system transactions, tracing, and event logging
- Additional coverage includes such topics as writing Windows applications and Windows services, writing Web pages and Web services with ASP.NET 3.0, manipulating XML using C# 2005, and generating graphics using C# 2005
* Additional coverage includes such topics as writing Windows applications and Windows services, writing Web pages and Web services with ASP.NET 3.0, manipulating XML using C# 2005, and generating graphics using C# 2005
Providing you with the ultimate guide to the C# language, this book will help you quickly write your own programs while also getting you up to speed on how the .NET architecture works. It not only covers the fundamentals of C# but presents numerous examples of applications that use a variety of related technologies, including database access, advanced graphics, and directory access.
You'll first find a comprehensive tutorial that takes you through C# 2005 and the .NET 3.0 Framework, enabling you to begin writing managed code. Next you'll explore the vast .NET class library and discover how to use C# to solve various tasks. You'll then see how to utilize Visual Studio® 2005 to create applications based on .NET. And you'll gain the skills needed to build Windows Forms, Windows Services, web pages, and more.
What you will learn from this book
- All about C#'s syntax and data types as well as more advanced programming concepts
Strategies for enhancing security and generating your own libraries as assemblies
Ways to access databases with ADO.NET
How to use GDI+ to build applications with sophisticated graphics
Tips for using Windows® Communication Foundation and Windows® Workflow Foundation
How to write programs which take into account the new features and barriers found in Windows Vista
Who this book is for
This book is for the experienced developer, although no previous knowledge of C# or .NET programming is assumed. It is also for programmers who know .NET 2.0 and are interested in learning .NET 3.0 and Visual Studio 2005.
Enhance Your Knowledge
Advance Your Career
Wrox Professional guides are planned and written by working programmers to meet the real-world needs of programmers, developers, and IT professionals. Focused and relevant, they address the issues technology professionals face every day. They provide examples, practical solutions, and expert education in new technologies, all designed to help programmers do a better job.
About the Author
is software architect and developer, associate of thinktecture, who offers training and consulting on how to design and develop Microsoft .NET solutions. He looks back to more than 20 years experience as a developer and software architect. Christian started his computing career with PDP 11 and VAX/VMS platforms, covering a variety of languages and platforms. Since the year 2000 — when .NET was just a technology preview — he has been working with various .NET technologies to build distributed business solutions. With his profound knowledge of Microsoft technologies, he has written numerous .NET books; is certified as Microsoft Certified Trainer (MCT) and Professional Developer (MCPD) for Windows, Web, and Enterprise Applications; and he is Microsoft regional director and MVP for ASP.NET. Christian is a speaker at international conferences (TechEd, TechDays), and supports .NET user groups with INETA Europe (International .NET Association). You can contact Christian via his Web sites, www.christiannagel.com and www.thinktecture.com.
Bill Evjen is an active proponent of .NET technologies and community-based learning initiatives for .NET. He has been actively involved with .NET since the first bits were released in 2000. In the same year, Bill founded the St. Louis .NET User Group (www.stlnet.org), one of the world’s first such groups. Bill is also the founder and former executive director of the International .NET Association (www.ineta.org), which represents more than 450,000 members worldwide.
Based in St. Louis, Missouri, Bill is an acclaimed author (more than 13 books to date) and speaker on ASP.NET and XML Web services. He has written or co-written Professional C# 2005, Professional VB 2005, and the bestselling Professional ASP.NET 2.0, as well as ASP.NET Professional Secrets, XML Web Services for ASP.NET, Web Services Enhancements: Understanding the WSE for Enterprise Applications, Visual Basic .NET Bible, and more. In addition to writing, Bill is a speaker at numerous conferences, including DevConnections, VSLive, and TechEd. Along with these items, Bill works closely with Microsoft as a Microsoft regional director and he has received the Microsoft MVP designation for many years.
Bill is the technical architect for Lipper (www.lipperweb.com), a wholly owned subsidiary of Reuters, the international news and financial services company. He was graduated from Western Washington University in Bellingham, Washington with a Russian language degree. When he isn’t tinkering on the computer, he can usually be found at his summer house in Toivakka, Finland. You can reach Bill at email@example.com. He presently keeps his weblog at www.geekswithblogs.net/evjen.
Morgan Skinner began his computing career at a tender age on a Sinclair ZX80 at school, where he was underwhelmed by some code a teacher had written and so began programming in assembly language. After getting hooked on Z80 (which he believes is far better than those paltry three registers on the 6502), he graduated through the school’s ZX81s to his own ZX Spectrum.
Since then he’s used all sorts of languages and platforms, including VAX Macro Assembler, Pascal, Modula2, Smalltalk, X86 assembly language, PowerBuilder, C/C++, VB, and currently C#. He’s been programming in .NET since the PDC release in 2000, and liked it so much, he joined Microsoft in 2001. He now works in Premier Support for Developers and spends most of his time assisting customers with C#.
You can reach Morgan at www.morganskinner.com.
Jay Glynn started writing software nearly 20 years ago, writing applications for the PICK operating system using PICK basic. Since then, he has created software using Paradox PAL and Object PAL, Delphi, VBA, Visual Basic, C, C++, Java, and of course C#. He is currently a project coordinator and architect for a large financial services company in Nashville, Tennessee, working on software for the TabletPC platform.
He can be contacted at firstname.lastname@example.org.
Karli Watson is a freelance author and the technical director of 3form Ltd (www.3form.net). Despite starting out by studying nanoscale physics, the lure of cold, hard cash proved too much and dragged Karli into the world of computing. He has since written numerous books on .NET and related technologies, SQL, mobile computing, and a novel that has yet to see the light of day (but that doesn’t have any computers in it). Karli is also known for his multicolored clothing, is a snowboarding enthusiast, and still wishes he had a cat.
Table of Contents
Part I: The C# Language.
Chapter 1: .NET Architecture.
Chapter 2: C# Basics.
Chapter 3: Objects and Types.
Chapter 4: Inheritance.
Chapter 5: Arrays.
Chapter 6: Operators and Casts.
Chapter 7: Delegates and Events.
Chapter 8: Strings and Regular Expressions.
Chapter 9: Generics.
Chapter 10: Collections.
Chapter 11: Memory Management and Pointers.
Chapter 12: Reflection.
Chapter 13: Errors and Exceptions.
Part II: Visual Studio.
Chapter 14: Visual Studio 2005.
Chapter 15: Deployment.
Part III: Base Class Libraries.
Chapter 16: Assemblies.
Chapter 17: Tracing and Events.
Chapter 18: Threading and Synchronization.
Chapter 19: .NET Security.
Chapter 20: Localization.
Chapter 21: Transactions.
Chapter 22: Windows Services.
Chapter 23: COM Interoperability.
Part IV: Data.
Chapter 24: Manipulating Files and the Registry.
Chapter 25: Data Access with .NET.
Chapter 26: Manipulating XML.
Chapter 27: .NET Programming with SQL Server 2005.
Part V: Presentation.
Chapter 28: Windows Forms.
Chapter 29: Viewing .NET Data.
Chapter 30: Graphics with GDI+.
Chapter 31: Windows Presentation Foundation.
Chapter 32: ASP.NET Pages.
Chapter 33: ASP.NET Development.
Chapter 34: ASP.NET AJAX.
Part VI: Communication.
Chapter 35: Accessing the Internet.
Chapter 36: Web Services with ASP.NET.
Chapter 37: .NET Remoting.
Chapter 38: Enterprise Services.
Chapter 39: Message Queuing.
Chapter 40: Windows Communication Foundation.
Chapter 41: Windows Workflow Foundation.
Chapter 42: Directory Services.
Part VII: Additional Information.
Chapter 43: C#, Visual Basic, and C++/CLI.
Chapter 44: Windows Vista.
Chapter 45: Language Integrated Query.