Beginning with C# 2010 programming basics such as variables, flow control, and object oriented programming, this invaluable book then moves into web and Windows programming and data access (databases and XML). All the while, the expert team of authors focuses on the tools that you need to program C#, the Visual C# 2010 development environment in Visual Studio® 2010. The step–by–step instructions and constructive examples featured throughout the book will show you how to program confidently with useful code in C# 2010.
Beginning Visual C# 2010:
Explains basic C# 2010 syntax, including variables and expressions
Reviews generics and explains how to define and use them
Covers Windows programming and Windows Forms
Examines language enhancements, Lambda expressions, and extension methods
Shows how to deploy Windows applications
Discusses XML and provides an introduction to LINQ
Delves into debugging and error handling
Demonstrates useful techniques for WPF and WCF
Wrox Beginning guides are crafted to make learning programming languages and technologies easier than you think, providing a structured, tutorial format that will guide you through all the techniques involved.
Join our Programmer to Programmer forums to ask and answer programming questions about this book, join discussions on the hottest topics in the industry, and connect with fellow programmers from around the world.
Take advantage of free code samples from this book, as well as code samples from hundreds of other books, all ready to use.
Find articles, ebooks, sample chapters and tables of contents for hundreds of books, and more reference resources on programming topics that matter to you.
PART I: THE C# LANGUAGE
CHAPTER 1: INTRODUCING C# 3
CHAPTER 2: WRITING A C# PROGRAM 13
CHAPTER 3: VARIABLES AND EXPRESSIONS 31
CHAPTER 4: FLOW CONTROL 59
CHAPTER 5: MORE ABOUT VARIABLES 93
CHAPTER 6: FUNCTIONS 125
CHAPTER 7: DEBUGGING AND ERROR HANDLING 155
CHAPTER 8: INTRODUCTION TO OBJECT–ORIENTED PROGRAMMING 185
CHAPTER 9: DEFINING CLASSES 209
CHAPTER 10: DEFINING CLASS MEMBERS 241
CHAPTER 11: COLLECTIONS, COMPARISONS, AND CONVERSIONS 277
CHAPTER 12: GENERICS 331
CHAPTER 13: ADDITIONAL OOP TECHNIQUES 373
CHAPTER 14: C# LANGUAGE ENHANCEMENTS 401
PART II: WINDOWS PROGRAMMING
CHAPTER 15: BASIC WINDOWS PROGRAMMING 447
CHAPTER 16: ADVANCED WINDOWS FORMS FEATURES 497
CHAPTER 17: DEPLOYING WINDOWS APPLICATIONS 533
PART III: WEB PROGRAMMING
CHAPTER 18: ASP.NET WEB PROGRAMMING 577
CHAPTER 19: WEB SERVICES 637
CHAPTER 20: DEPLOYING WEB APPLICATIONS 665
PART IV: DATA ACCESS
CHAPTER 21: FILE SYSTEM DATA 683
CHAPTER 22: XML 725
CHAPTER 23: INTRODUCTION TO LINQ 753
CHAPTER 24: APPLYING LINQ 795
PART V: ADDITIONAL TECHNIQUES
CHAPTER 25: WINDOWS PRESENTATION FOUNDATION 829
CHAPTER 26: WINDOWS COMMUNICATION FOUNDATION 899
CHAPTER 27: WINDOWS WORKFLOW FOUNDATION 935
APPENDIX A: EXERCISE SOLUTIONS 957
CHRISTIAN NAGEL is a Microsoft Regional Director and Microsoft MVP, an associate of Thinktecture, and owner of CN Innovation. He is a software architect and developer who offers training and consulting on how to developMicrosoft .NET solutions. He looks back on more than 25 years of software development experience. Christian started his computing career with PDP 11 and VAX/VMS systems, covering a variety of languages and platforms. Since 2000, when .NET was just a technology preview, he has been working with various .NET technologies to build numerous .NET solutions. With his profound knowledge of Microsoft technologies, he has written numerous .NET books, and is certified as a Microsoft Certified Trainer and Professional Developer. Christian speaks at international conferences such as TechEd and Tech Days, and started INETA Europe to support .NET user groups. You can contact Christian via his web sites, [external URL] and [external URL] and follow his tweets on [external URL] Christian wrote chapters 17 through 20.
JACOB HAMMER PEDERSEN is a Senior Application Developer at Elbek& Vejrup. He just about started programming when he was able to spell the word BASIC , which, incidentally is the first programming language he ever used. He started programming the PC in the early 90s, using Pascal but soon changed his focus to C++, which still holds his interest. In the mid 90s his focus changed again, this time to Visual Basic. In the summer of 2000 he discovered C# and has been happily exploring it ever since. Primarily working on the Microsoft platforms, his other expertise includes MS Office development, SQL Server, COM and Visual Basic.Net.
A Danish citizen, Jacob works and lives in Aarhus, Denmark. He authored chapters 15, 16, and 22.
JON D. REID is a software engineering manager atMetrix LLC, an ISV of field service management software for the Microsoft environment. He has co–authored a variety .NET books, including Beginning Visual C# 2008, Beginning C# Databases: From Novice to Professional, Pro Visual Studio .NET, and many others. Jon wrote chapters 23 and 24.
MORGAN SKINNER began his computing career at a young age on the Sinclair ZX80 at school, where he was underwhelmed by some code a teacher had written and so began programming in assembly language. 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# (of course). 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#. Morgan wrapped up the book by authoring chapter 27. You can reach Morgan at [external URL]