Companion Web site has sample code and extra stuff
Create console apps, discover delegates and events, and explore interfaces
C# is a powerful programming language that has become a favorite tool of Visual Studio programmers, and this friendly guide will get you up to speed on the newest version -- painlessly. Before you know it you'll be creating applications for Vista, using LINQ to simplify database code, knowing what to do with HashSets, and more.
Discover how to:
*
Create a console application template
*
Work with loops and if statements
*
Understand collection syntax
*
Use interfaces and object-oriented concepts
*
Apply delegates and events
Inhaltsverzeichnis
Introduction 1
Part I: Getting Started with C# 9
Chapter 1: Creating Your First C# Console Application 11
Part II: Basic C# Programming 25
Chapter 2: Living with Variability - Declaring Value-Type Variables 27
Chapter 3: Smooth Operators 49
Chapter 4: Getting into the Program Flow 61
Chapter 5: Lining Up Your Ducks with Collections 89
Chapter 6: Pulling Strings 117
Part III: Using Objects 147
Chapter 7: Showing Some Class 149
Chapter 8: We Have Our Methods 161
Chapter 9: Let Me Say This about this 191
Chapter 10: Object-Oriented Programming - What's It All About? 209
Part IV: Object-Oriented Programming 217
Chapter 11: Holding a Class Responsible 219
Chapter 12: Inheritance - Is That All I Get? 251
Chapter 13: Poly-what-ism? 275
Chapter 14: Interfacing with the Interface 303
Part V: Now Showing in C# 3.0 331
Chapter 15: Delegating Those Important Events 333
Chapter 16: Mary Had a Little Lambda Expression 353
Chapter 17: LINQing Up with Query Expressions 367
Part VI: The Part of Tens 403
Chapter 18: Ten Common Build Errors (And How to Fix Them) 405
Index 417