Get ready for the next release of Microsoft's C# programming language with this essential Wrox beginner's guide. Beginning Microsoft Visual C# 2010 starts with the basics and brings you thoroughly up to speed. You'll 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. * The C# 4 programming language version will be synonymous with writing code with in C# 2010 in Visual Studio 2010, and you can use it to write Windows applications, Web apps with ASP.N ET, and Windows Mobile and Embedded CE apps * Provides step-by-step instructions for mastering topics such as variables, flow controls, and object-oriented programming before moving to Web and Windows programming and data access * Addresses expressions, functions, debugging, error handling, classes, collections, comparisons, conversions, and more
If you've always wanted to master Visual C# programming, this book is the perfect one-stop resource.
Note: CD-ROM/DVD and other supplementary materials are not included as part of eBook file.
INTRODUCTION xxxiii 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 INDEX 1009
KARLI WATSON is consultant at Infusion Development (www.infusion.com), a technology architect at Boost.net (www.boost.net), and a freelance IT specialist, author, and developer. For the most part, he immerses himself in .NET (in particular C# and lately WPF) and has written numerous books in the field for several publishers. He specializes in communicating complex ideas in a way that is accessible to anyone with a passion to learn, and spends much of his time playing with new technology to find new things to teach people about. During those (seemingly few) times where he isn t doing the above, Karli will probably be wishing he was hurtling down a mountain on a snowboard. Or possibly trying to get his novel published. Either way, you ll know him by his brightly colored clothes. You can also find him tweeting online at www.twitter.com/karlequin, and maybe one day he ll get around to making himself a website. Karli authored chapters 1 through 14, 21, 25 and 26. 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, www.cninnovation.com and www.thinktecture.com and follow his tweets on www.twitter.com/christiannagel. 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 www.morganskinner.com.