Professional C# (.NET): Advanced Techniques
300 pages
English
PDF
4.5

Professional C# (.NET): Advanced Techniques

Professional C# (.NET): Advanced Techniques

Author:

Year:

Summary:

The book "Professional C# (.NET): Advanced Techniques" is a practical guide for developers who are already familiar with the basics of C# and want to reach a new level of mastery. The author, Alexey Sokolov, a senior developer with 12 years of experience, has compiled in one book the most in-demand and complex topics that are rarely found in beginner textbooks.



What is this book about?

The book is dedicated to an in-depth study of the .NET platform (including .NET Core and .NET 5/6/7) and the C# language. You will not find explanations of loop syntax or classes here — the material is intended for those who already write production code. Instead, you will delve into:

  • Asynchronous Programming — from Task and async/await to advanced patterns (CancellationToken, ValueTask, IAsyncEnumerable).
  • Multithreading and Parallelism — ThreadPool, TPL, Dataflow, locks, Concurrent collections, and avoiding deadlocks.
  • LINQ and Expressions — not just queries, but creating custom providers, working with Expression Trees, and performance optimization.
  • Reflection and Metaprogramming — dynamic type creation, attributes, code generation via Roslyn.
  • Memory Management and Performance — Garbage Collector, Span, Memory, stackalloc, BenchmarkDotNet, profiling.
  • Dependency Injection and Architecture — containers, middleware, AOP, implementing your own IoC containers.
  • Testing and Debugging — unit testing, mocking, integration tests, testing asynchronous code.


Who is this book for?

The book is intended for:

  • C# developers with 1+ years of experience who want to move into a senior position.
  • Backend engineers working with ASP.NET Core and microservices.
  • Developers preparing for technical interviews (the book covers typical questions from FAANG).
  • Those who write high-load systems and want to optimize code.


What will you learn?

  • How to write asynchronous code without pitfalls and memory leaks.
  • How to use Span and Memory for zero-allocation data processing.
  • How to create custom attributes and code generators in Roslyn.
  • How to configure DI containers and write extensible applications.
  • How to profile and optimize .NET applications under load.


Each chapter contains practical examples ready for use in real projects and exercises for independent work. The book will become your desktop reference for advanced C# and .NET.

Recommendations