A Programmer's Guide to C# 5.0

Front Cover
Apress, Nov 7, 2012 - Computers - 600 pages

A Programmer’s Guide to C# takes you deep into the C# language, showing you the details of how the language works and explaining why it works the way it does. This information will make you a more effective C# developer.































Written by one-time C# Test Lead, Program Manager, and member of the original C# language design team, this book is a great companion to the C# Language Specification, and works both as a tutorial and as a reference guide.































This fourth edition covers all the new elements of C# 5.0, including Linq, covariance and contravariance, and the new async features. It is a comprehensive tutorial aimed at the working programmer, offering in-depth information how C# works and why it works that way. It is a key resource for all C# programmers.















What you’ll learn Learn the "why" behind C# features. Learn how to use C# features effectively, in the way they were designed. Apply the newest C# features to your coding problems. Streamline your database code using Linq. Use Async support to simplify your code. Who this book is for

A Programmer’s Guide to C# is aimed at software developers who want to improve their proficiency at using the C# language. No prior knowledge of .NET is required, but the book does assume experience with a general-purpose programming language.

 

What people are saying - Write a review

We haven't found any reviews in the usual places.

Contents

Chapter 1 C and the NET Runtime and Libraries
1
Chapter 2 C QuickStart and Developing in C
3
Chapter 3 Classes 101
11
Chapter 4 Base Classes and Inheritance
19
Chapter 5 Exception Handling
33
Chapter 6 Member Accessibility and Overloading
47
Chapter 7 Other Class Details
57
Chapter 8 Structs Value Types
77
Chapter 25 UserDefined Conversions
227
Chapter 26 Operator Overloading
241
Chapter 27 Nullable Types
247
Chapter 28 Linq to Objects
251
Chapter 29 Linq to XML
269
Chapter 30 Linq to SQL
283
Chapter 31 Other Language Details
293
Chapter 32 Making Friends with the NET Framework
305

Chapter 9 Interfaces
83
Chapter 10 Versioning and Aliases
95
Chapter 11 Statements and Flow of Execution
101
Chapter 12 Variable Scoping and Definite Assignment
109
Chapter 13 Operators and Expressions
115
Chapter 14 Conversions
127
Chapter 15 Arrays
137
Chapter 16 Properties
143
Chapter 17 Generic Types
153
Chapter 18 Indexers Enumerators and Iterators
165
Chapter 19 Strings
177
Chapter 20 Enumerations
187
Chapter 21 Attributes
195
Chapter 22 Delegates Anonymous Methods and Lambdas
203
Chapter 23 Events
215
Chapter 24 Dynamic Typing
223
Chapter 33 SystemArray and the Collection Classes
311
Chapter 34 Threading
319
Chapter 35 Asynchronous and Parallel Programming
335
Chapter 36 ExecutionTime Code Generation
345
Chapter 37 Interop
351
Chapter 38 NET Base Class Library Overview
361
Chapter 39 Deeper into C
385
Chapter 40 Logging and Debugging Techniques
405
Chapter 41 IDEs and Utilities
421
Index
423
Contents
vii
Preface
xxv
About the Authors
xxvi
About the Technical Reviewer
xxvii
Acknowledgments
xxviii
Copyright

Other editions - View all

Common terms and phrases

About the author (2012)

Eric Gunnerson is a software developer working at Microsoft. He is a past C# Test Lead, C# Program Manager, and member of the C# Language Design Team. He’s been a developer for longer than he cares to admit, and has worked on everything from microcontrollers to minicomputers. In his spare time, he enjoys writing about himself in the third person.

Nick Wienholt is an independent Windows and .NET consultant based in Sydney, Australia. He is the author of Maximizing .NET Performance, one of the top-selling .NET performance books. Since the book's release, it has ranked among Amazon's top 25 .NET titles. Wienholt was awarded the Microsoft "Most Valuable Professional" award in 2002, 2003, and 2004, and he cofounded the Sydney Deep .NET user group. He also writes technical articles for Australian Developer Journal, ZDNet, Pinnacle Publishing, Developer.com, MSDN Magazine (the Australia and New Zealand Edition), and Microsoft Developer Network. Wienholt is a keen participant in .NET-related newsgroups.

Bibliographic information