Book description
When you have questions about C# 9.0 or .NET 5, this best-selling guide has the answers you need. C# is a language of unusual flexibility and breadth, but with its continual growth there's so much more to learn. In the tradition of O'Reilly's Nutshell guides, this thoroughly updated edition is simply the best one-volume reference to the C# language available today.
Organized around concepts and use cases, C# 9.0 in a Nutshell provides intermediate and advanced programmers with a concise map of C# and .NET that also plumbs significant depths.
- Get up to speed on C#, from syntax and variables to advanced topics such as pointers, records, closures, and patterns
- Dig deep into LINQ with three chapters dedicated to the topic
- Explore concurrency and asynchrony, advanced threading, and parallel programming
- Work with .NET features, including regular expressions, networking, spans, reflection, and cryptography
Publisher resources
Table of contents
- Preface
- 1. Introducing C# and .NET
- 2. C# Language Basics
-
3. Creating Types in C#
- Classes
- Inheritance
- The object Type
- Structs
- Access Modifiers
- Interfaces
- Enums
- Nested Types
-
Generics
- Generic Types
- Why Generics Exist
- Generic Methods
- Declaring Type Parameters
- typeof and Unbound Generic Types
- The default Generic Value
- Generic Constraints
- Subclassing Generic Types
- Self-Referencing Generic Declarations
- Static Data
- Type Parameters and Conversions
- Covariance
- Contravariance
- C# Generics Versus C++ Templates
-
4. Advanced C#
- Delegates
- Events
- Lambda Expressions
- Anonymous Methods
- try Statements and Exceptions
- Enumeration and Iterators
- Nullable Value Types
- Nullable Reference Types
- Extension Methods
- Anonymous Types
- Tuples
- Records (C# 9)
- Patterns
- Attributes
- Caller Info Attributes
- Dynamic Binding
- Operator Overloading
- Unsafe Code and Pointers
- Preprocessor Directives
- XML Documentation
-
5. .NET Overview
- .NET Standard
- Runtime and C# Language Versions
- Reference Assemblies
-
The CLR and BCL
- System Types
- Text Processing
- Collections
- Querying
- XML and JSON
- Diagnostics
- Concurrency and Asynchrony
- Streams and Input/Output
- Networking
- Assemblies, Reflection, and Attributes
- Dynamic Programming
- Cryptography
- Advanced Threading
- Parallel Programming
- Span<T> and Memory<T>
- Native and COM Interoperability
- Regular Expressions
- Serialization
- The Roslyn Compiler
- Application Layers
- 6. .NET Fundamentals
- 7. Collections
- 8. LINQ Queries
- 9. LINQ Operators
- 10. LINQ to XML
- 11. Other XML and JSON Technologies
- 12. Disposal and Garbage Collection
- 13. Diagnostics
- 14. Concurrency and Asynchrony
- 15. Streams and I/O
- 16. Networking
- 17. Assemblies
- 18. Reflection and Metadata
- 19. Dynamic Programming
- 20. Cryptography
- 21. Advanced Threading
- 22. Parallel Programming
- 23. Span<T> and Memory<T>
- 24. Native and COM Interoperability
- 25. Regular Expressions
- Index
Product information
- Title: C# 9.0 in a Nutshell
- Author(s):
- Release date: February 2021
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781098100919
You might also like
book
C# 8.0 in a Nutshell
When you have questions about C# 8.0 or .NET Core, this best-selling guide has the answers …
book
Code like a Pro in C#
Build on your existing programming skills and upskill to professional-level C# programming. In Code Like A …
book
Programming C# 8.0
C# is undeniably one of the most versatile programming languages available to engineers today. With this …
book
Clean Code in C#
Develop your programming skills by exploring essential topics such as code reviews, implementing TDD and BDD, …