A Programmer's Guide to C# 5.0 is a book for software developers who want to truly understand C#. Whether you've worked with C# before or with another general-purpose programming language, each fast-paced, focused chapter will take you straight to the heart of a feature of C# and show you why it works the way it does.
Written by one-time C# Test Lead, Program Manager, and member of the original C# language design team, this book is an ideal companion to the C# Language Specification, and works both as a tutorial and as a reference guide. Now in its fourth edition, you will find up-to-date coverage of all the latest C# features, including Linq, covariance and contravariance, and async support.
You'll learn how to:
- Use C# features effectively, in the way they were intended
- Apply the newest C# features to your coding problems
- Streamline your database code using LINQ
- Use async support and the task parallel library to improve performance.
- Program more efficiently, effectively, and with real insight into this mature and exciting language, with A Programmer's Guide to C# 5.0.
Author(s): Eric Gunnerson (auth.)
Edition: 4
Publisher: Apress
Year: 2012
Language: English
Pages: 435
Tags: Computer Science, general
Front Matter....Pages i-xxxiii
C# and the .NET Runtime and Libraries....Pages 1-2
C# QuickStart and Developing in C#....Pages 3-10
Classes 101....Pages 11-17
Base Classes and Inheritance....Pages 19-31
Exception Handling....Pages 33-46
Member Accessibility and Overloading....Pages 47-56
Other Class Details....Pages 57-76
Structs (Value Types)....Pages 77-82
Interfaces....Pages 83-93
Versioning and Aliases....Pages 95-99
Statements and Flow of Execution....Pages 101-108
Variable Scoping and Definite Assignment....Pages 109-113
Operators and Expressions....Pages 115-126
Conversions....Pages 127-135
Arrays....Pages 137-142
Properties....Pages 143-151
Generic Types....Pages 153-163
Indexers, Enumerators, and Iterators....Pages 165-175
Strings....Pages 177-185
Enumerations....Pages 187-193
Attributes....Pages 195-201
Delegates, Anonymous Methods, and Lambdas....Pages 203-213
Events....Pages 215-222
Dynamic Typing....Pages 223-225
User-Defined Conversions....Pages 227-240
Operator Overloading....Pages 241-246
Nullable Types....Pages 247-250
Linq to Objects....Pages 251-267
Linq to XML....Pages 269-282
Linq to SQL....Pages 283-291
Other Language Details....Pages 293-304
Making Friends with the .NET Framework....Pages 305-310
System.Array and the Collection Classes....Pages 311-318
Threading....Pages 319-333
Asynchronous and Parallel Programming....Pages 335-343
Execution-Time Code Generation....Pages 345-350
Interop....Pages 351-360
.NET Base Class Library Overview....Pages 361-383
Deeper into C#....Pages 385-403
Logging and Debugging Techniques....Pages 405-419
IDEs and Utilities....Pages 421-422
Back Matter....Pages 423-435