Book description
When you have questions about C# 12 or .NET 8, this best-selling guide has the answers you need. C# is a language of unusual flexibility and breadth, and with its continual growth, there's always 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.
Aimed at intermediate and advanced programmers, this is a book whose explanations get straight to the point, covering C#, the CLR, and the core .NET libraries in depth without long intros or bloated samples.
- Get up to speed on C# from syntax and variables to advanced topics such as pointers, 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, assemblies, spans, cryptography, and reflection.emit
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
- Patterns
- Attributes
- Caller Info Attributes
- Dynamic Binding
- Operator Overloading
- Static Polymorphism
- Unsafe Code and Pointers
- Preprocessor Directives
- XML Documentation
-
5. .NET Overview
- Runtime Targets and TFMs
- .NET Standard
- Reference Assemblies
- Runtime and C# Language Versions
-
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
- About the Author
Product information
- Title: C# 12 in a Nutshell
- Author(s):
- Release date: November 2023
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781098147440
You might also like
book
C# 10 in a Nutshell
When you have questions about C# 10 or .NET 6, this best-selling guide has the answers …
book
C# 12 and .NET 8 – Modern Cross-Platform Development Fundamentals - Eighth Edition
An accessible guide for beginner-to-intermediate programmers to the concepts, real-world applications, and latest features of C# …
book
Software Architecture with C# 12 and .NET 8 - Fourth Edition
A book for the aspiring .NET software architect – design scalable and high-performance enterprise solutions using …
book
Pro Go: The Complete Guide to Programming Reliable and Efficient Software Using Golang
Best-selling author Adam Freeman explains how to get the most from Go, starting from the basics …