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 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 currently involved in the bioinformatics business. 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# 3.0 Pocket Reference; 1.1 What's New in C# 3.0; 1.2 A First C# Program; 1.3 Syntax; 1.4 Type Basics; 1.5 Numeric Types; 1.6 Boolean Type and Operators; 1.7 Strings and Characters; 1.8 Arrays; 1.9 Variables and Parameters; 1.10 Expressions and Operators; 1.11 Statements; 1.12 Namespaces; 1.13 Classes; 1.14 Inheritance; 1.15 The object Type; 1.16 Structs; 1.17 Access Modifiers; 1.18 Interfaces; 1.19 Enums; 1.20 Nested Types; 1.21 Generics; 1.22 Delegates; 1.23 Events; 1.24 Lambda Expressions (C# 3.0); 1.25 Anonymous Methods; 1.26 try Statements and Exceptions; 1.27 Enumeration and Iterators; 1.28 Nullable Types; 1.29 Operator Overloading; 1.30 Extension Methods (C# 3.0); 1.31 Anonymous Types (C# 3.0); 1.32 LINQ (C# 3.0); 1.33 Attributes; 1.34 Unsafe Code and Pointers; 1.35 Preprocessor Directives; 1.36 XML Documentation; 1.37 Framework Overview;