ssential C# 7.0 is a well-organized, no-fluff guide to C# 7.0 for programmers at all levels of experience. Reflecting the most important C# features from 3.0 through 7.0 and including modern programming patterns, it will help you write code that’s simple, powerful, robust, secure, and maintainable.
Author Mark Michaelis is a world-class C# expert: a long-time Microsoft MVP and Regional Director who also has served on Microsoft’s C# design review team. He presents a comprehensive tutorial and reference for the entire language, including expert coverage of key C# 7.0 enhancements, C# 7.0’s use with .NET Core/.NET Standard, and cross-platform compilation. He illustrates key C# constructs with succinct examples, and presents best-practice coding guidelines. To help you maintain existing code, separate indexes provide version-specific answers for C# 5.0, 6.0, and 7.0, and visual icons show when each language innovation was introduced.
Make the most of C# 7.0 enhancements, including tuples, deconstructors, pattern matching, local functions, and ref returns
Work efficiently with C# data types, operators, control flow, methods, and parameters
Write more robust code with C# object-oriented constructs
Implement reliable, effective exception handling
Reduce code complexity with generics, delegates, lambda expressions, and events
Leverage advanced dynamic and declarative programming techniques
Query diverse data collections using LINQ with query expressions
Create custom collections that operate against business objects
Access .NET collections via collection interfaces and standard query operators
Master multithreading and synchronization, including the async/await paradigm
Optimize performance and interoperability with P/Invoke and unsafe code
Run your code on Linux or macOS with C# 7.0 cross-platform compilation
Includes C# 7.1, 7.2, and 7.3 language enhancements
This guide offers you a complete foundation for successful development with modern versions of the C# language in any project or environment.
Table of Contents
Chapter 1 Introducing C#
Chapter 2 Data Types
Chapter 3 More with Data Types
Chapter 4 Operators and Control Flow
Chapter 5 Methods and Parameters
Chapter 6 Classes
Chapter 7 Inheritance
Chapter 8 Interfaces
Chapter 9 Value Types
Chapter 10 Well-Formed Types
Chapter 11 Exception Handling
Chapter 12 Generics
Chapter 13 Delegates and Lambda Expressions
Chapter 14 Events
1