C# 4.0 in a Nutshell: The Definitive Reference

Front Cover
"O'Reilly Media, Inc.", Jan 20, 2010 - Computers - 1060 pages
5 Reviews

What people are saying about C# 4.0 in a Nutshell

"C# 4.0 in a Nutshell is one of the few books I keep on my desk as a quick reference. It is a book I recommend."--Scott Guthrie, Corporate Vice President, .NET Developer Platform, Microsoft Corporation

"A must-read for a concise but thorough examination of the parallel programming features in the .NET Framework 4."--Stephen Toub, Parallel Computing Platform Program Manager, Microsoft

"This wonderful book is a great reference for developers of all levels."-- Chris Burrows, C# Compiler Team, Microsoft

When you have questions about how to use C# 4.0 or the .NET CLR, this highly acclaimed bestseller has precisely the answers you need. Uniquely organized around concepts and use cases, this fourth edition includes in-depth coverage of new C# topics such as parallel programming, code contracts, dynamic programming, security, and COM interoperability. You'll also find updated information on LINQ, including examples that work with both LINQ to SQL and Entity Framework. This book has all the essential details to keep you on track with C# 4.0.

  • Get up to speed on C# language basics, including syntax, types, and variables
  • Explore advanced topics such as unsafe code and preprocessor directives
  • Learn C# 4.0 features such as dynamic binding, type parameter variance, and optional and named parameters
  • Work with .NET 4's rich set of features for parallel programming, code contracts, and the code security model
  • Learn .NET topics, including XML, collections, I/O and networking, memory management, reflection, attributes, security, and native interoperability
 

What people are saying - Write a review

User Review - Flag as inappropriate

This book is the definitive desk reference for the C# language. Whether you are a beginner or a seasoned C# programmer this book is a definite must. The book is laid out in a way making it readable from beginning to end building upon concepts and explained syntaxes, or as a reference guide that can explain a concept on it’s own if looked up directly.
The coding examples are usually easy to follow and understand and simply abstract the concept they are explaining.
This book covers all of the new features in C# 4.0 – the items I found most interesting were code contracts, truples, optional parameters.
Weighing in at over 1000 pages – the book can be a little overwhelming, but once you dive into it you find that the subject matter flows well and is not over presented. There is just that much to know about C#. And even if you have been programming in C# for years there is really no chance you know it all.
So pick up this book and find out what you didn’t know.
 

User Review - Flag as inappropriate

Personally these books are the best in the market. The way they explain the topics and content of the books basically surpass all other competitors in the market right now.

All 5 reviews »

Contents

Chapter 1 Introducing C and the NET Framework
1
Chapter 2 C Language Basics
7
Chapter 3 Creating Types in C
63
Chapter 4 Advanced C
115
Chapter 5 Framework Overview
181
Chapter 6 Framework Fundamentals
193
Chapter 7 Collections
263
Chapter 8 LINQ Queries
311
Chapter 16 Serialization
609
Chapter 17 Assemblies
647
Chapter 18 Reflection and Metadata
681
Chapter 19 Dynamic Programming
735
Chapter 20 Security
751
Chapter 21 Threading
789
Chapter 22 Parallel Programming
873
Chapter 23 Asynchronous Methods
927

Chapter 9 LINQ Operators
367
Chapter 10 LINQ to XML
413
Chapter 11 Other XML Technologies
447
Chapter 12 Disposal and Garbage Collection
475
Chapter 13 Diagnostics and Code Contracts
499
Chapter 14 Streams and IO
537
Chapter 15 Networking
579
Chapter 24 Application Domains
943
Chapter 25 Native and COM Interoperability
957
Chapter 26 Regular Expressions
977
Appendix C Keywords
997
Index
1005
Copyright

Other editions - View all

Common terms and phrases

About the author (2010)

Joseph Albahari is a core C# design architect at Egton Medical Information Systems, the largest primary healthcare software supplier in the UK. He has been developing large-scale enterprise applications on .NET and other platforms for more than 15 years, working in medical, telecommunication and education industries. Joseph specializes in writing custom components and controls, and has designed application component frameworks for three companies.

Ben Albahari is a former Program Manager at Microsoft, where he worked on several projects, including the .NET Compact Framework and ADO.NET. He was the cofounder of Genamics, a provider of tools for C# and J++ programmers, as well as software for DNA and protein sequence analysis. He is a coauthor of C# Essentials, the first C# book from O'Reilly, and of previous editions of C# in a Nutshell. He is the founder of TakeOnIt, a website for comparing opinions of experts, leaders and organizations

Bibliographic information