Synopses & Reviews
This book is for busy programmers who want a succinct and yet readable guide to C# 3.0 and LINQ. C# 3.0 Pocket Reference tells you exactly what you need to know, without long introductions or bloated samples.
Despite its conciseness, this book doesn't skimp on depth or detail, and embraces the conceptual challenges in learning C# 3.0 and LINQ. Tightly focused and highly practical, this pocket reference covers more ground than many of the big books on C#.
C# 3.0 Pocket Reference includes plenty of illustrations and code examples to explain:
- Features new to C# 3.0, such as lambda expressions, anonymous types, automatic properties, and more
- All aspects of C# syntax, predefined types, expressions, and operators
- Creating classes, structs, delegates and events, enums, generics and constraints, exception handling, and iterators
- The subtleties of boxing, operating overloading, delegate covariance, extension method resolution, interface reimplementation, nullable types, and operating lifting
- LINQ, starting with the principles of sequences, deferred execution and standard query operators, and finishing with a complete reference to query syntax-including multiple generators, joining, grouping, and query continuations
- Consuming, writing, and reflecting on custom attributes
You'll also find chapters on unsafe code and pointers, preprocessor directives, XML documentation, and a framework overview. If you're already familiar with Java, C++, or an earlier version of C#, C# 3.0 Pocket Reference is an ideal choice.
No other book or online resource can get you up to speed so quickly.
When you're programming C# 4.0 and need a little help, this tightly focused and practical book tells you exactly what you need to know -- without long introductions or bloated examples. It's ideal as a succinct quick reference or as a guide to get you rapidly up to speed if you already know Java, C++, or an earlier version of C#.
Written by the authors of the acclaimed C# 4.0 in a Nutshell (OReilly), this book covers the entire C# 4.0 language -- without skimping on the details -- including:
- Features new to C# 4.0, such as dynamic binding, optional and named parameters, and type parameter variance
- All of C#'s fundamentals
- Advanced topics, including operator overloading, custom conversions, type constraints, covariance and contravariance, lambda expressions and closures, iterators, nullable types, and operator lifting
- LINQ, starting with sequences, lazy execution, and standard query operators; finishing with a complete reference to query expressions
- Unsafe code and pointers, custom attributes, preprocessor directives, and XML documentation
About the Author
Joseph Albahari is author of C# 3.0 in a Nutshell, LINQ Pocket Reference, and C# 3.0 Pocket Reference. He has been developing large-scale enterprise applications on .NET and other platforms for more than 15 years, and is author of LINQPad - the popular utility for querying databases in LINQ.
Joseph is currently a freelance consultant.
Joseph's Home Page
Ben Albahari is the founder of Take On It. He was a Program Manager at Microsoft for 5 years, 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 co-author of C# Essentials, the first C# book from O'Reilly, and of previous editions of C# in a Nutshell.
Table of Contents
Chapter 1: C# 4.0 Pocket Reference; 1.1 Using Code Examples; 1.2 How to Contact Us; 1.3 Safari® Books Online; 1.4 A First C# Program; 1.5 Syntax; 1.6 Type Basics; 1.7 Numeric Types; 1.8 Boolean Type and Operators; 1.9 Strings and Characters; 1.10 Arrays; 1.11 Variables and Parameters; 1.12 Expressions and Operators; 1.13 Statements; 1.14 Namespaces; 1.15 Classes; 1.16 Inheritance; 1.17 The object Type; 1.18 Structs; 1.19 Access Modifiers; 1.20 Interfaces; 1.21 Enums; 1.22 Nested Types; 1.23 Generics; 1.24 Delegates; 1.25 Events; 1.26 Lambda Expressions; 1.27 Anonymous Methods; 1.28 try Statements and Exceptions; 1.29 Enumeration and Iterators; 1.30 Nullable Types; 1.31 Operator Overloading; 1.32 Extension Methods; 1.33 Anonymous Types; 1.34 LINQ; 1.35 Dynamic Binding (C# 4.0); 1.36 Attributes; 1.37 Unsafe Code and Pointers; 1.38 Preprocessor Directives; 1.39 XML Documentation;