Table of Contents; Preface; Intended Audience; How This Book Is Organized; What You Need to Use This Book; Conventions Used in This Book; Using Code Examples; We'd Like to Hear from You; Safari® Books Online; Acknowledgments; Joseph Albahari; Ben Albahari; Chapter 1. Introducing C♯ and the .NET Framework; Object Orientation; Type Safety; Memory Management; Platform Support; C♯'s Relationship with the CLR; The CLR and .NET Framework; What's New in C♯ 4.0; Chapter 2. C♯ Language Basics; A First C♯ Program; Compilation; Syntax; Identifiers and Keywords; Avoiding conflicts; Contextual keywords. Literals, Punctuators, and OperatorsComments; Type Basics; Predefined Type Examples; Custom Type Examples; Members of a type; Symmetry of predefined types and custom types; Constructors and instantiation; Instance versus static members; The public keyword; Conversions; Value Types Versus Reference Types; Value types; Reference types; Null; Storage overhead; Predefined Type Taxonomy; Numeric Types; Numeric Literals; Numeric literal type inference; Numeric suffixes; Numeric Conversions; Integral to integral conversions; Floating-point to floating-point conversions. Floating-point to integral conversionsDecimal conversions; Arithmetic Operators; Increment and Decrement Operators; Specialized Integral Operations; Integral division; Integral overflow; Integral arithmetic overflow check operators; Overflow checking for constant expressions; Bitwise operators; 8- and 16-Bit Integrals; Special Float and Double Values; double Versus decimal; Real Number Rounding Errors; Boolean Type and Operators; Bool Conversions; Equality and Comparison Operators; Conditional Operators; Strings and Characters; Char Conversions; String Type; String concatenation. String comparisonsArrays; Default Element Initialization; Value types versus reference types; Multidimensional Arrays; Rectangular arrays; Jagged arrays; Simplified Array Initialization Expressions; Bounds Checking; Variables and Parameters; The Stack and the Heap; Stack; Heap; Definite Assignment; Default Values; Parameters; Passing arguments by value; The ref modifier; The out modifier; Implications of passing by reference; The params modifier; Optional parameters (C♯ 4.0); Named arguments (C♯ 4.0); var--Implicitly Typed Local Variables; Expressions and Operators; Primary Expressions. Void ExpressionsAssignment Expressions; Operator Precedence and Associativity; Precedence; Left-associative operators; Right-associative operators; Operator Table; Statements; Declaration Statements; Local variables; Expression Statements; Selection Statements; The if statement; The else clause; Changing the flow of execution with braces; The switch statement; Iteration Statements; while and do-while loops; for loops; foreach loops; Jump Statements; The break statement; The continue statement; The goto statement; The return statement; The throw statement; Miscellaneous Statements; Namespaces.
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, MicrosoftWhen you have questions about how to use C♯ 4.0 o.