Skip to main content

Introducing new learning courses and educational videos from Apress. Start watching

  • Book
  • © 2022

Pro C# 10 with .NET 6

Foundational Principles and Practices in Programming

  • Helps you build a solid and modernized foundation for .NET 6, including theory and principles

  • Covers the latest C# 10 language features, Visual Studio, and Visual Studio Code

  • Provides in-depth and expansive new coverage of Entity Framework Core

Buying options

Softcover Book USD 49.99
Price excludes VAT (USA)

Table of contents (34 chapters)

  1. Front Matter

    Pages i-lxv
  2. Introducing C# and .NET 6

    1. Front Matter

      Pages 1-1
    2. Introducing C# and .NET 6

      • Andrew Troelsen, Phil Japikse
      Pages 3-26
    3. Building C# Applications

      • Andrew Troelsen, Phil Japikse
      Pages 27-48
  3. Core C# Programming

    1. Front Matter

      Pages 49-49
    2. Core C# Programming Constructs, Part 1

      • Andrew Troelsen, Phil Japikse
      Pages 51-117
    3. Core C# Programming Constructs, Part 2

      • Andrew Troelsen, Phil Japikse
      Pages 119-179
  4. Object Oriented Programming with C#

    1. Front Matter

      Pages 181-181
    2. Understanding Encapsulation

      • Andrew Troelsen, Phil Japikse
      Pages 183-243
    3. Understanding Inheritance and Polymorphism

      • Andrew Troelsen, Phil Japikse
      Pages 245-288
    4. Understanding Structured Exception Handling

      • Andrew Troelsen, Phil Japikse
      Pages 289-314
    5. Working with Interfaces

      • Andrew Troelsen, Phil Japikse
      Pages 315-355
    6. Understanding Object Lifetime

      • Andrew Troelsen, Phil Japikse
      Pages 357-384
  5. Advanced C# Programming

    1. Front Matter

      Pages 385-385
    2. Collections and Generics

      • Andrew Troelsen, Phil Japikse
      Pages 387-426
    3. Advanced C# Language Features

      • Andrew Troelsen, Phil Japikse
      Pages 427-465
    4. Delegates, Events, and Lambda Expressions

      • Andrew Troelsen, Phil Japikse
      Pages 467-507
    5. LINQ to Objects

      • Andrew Troelsen, Phil Japikse
      Pages 509-550
    6. Processes, AppDomains, and Load Contexts.NET Core

      • Andrew Troelsen, Phil Japikse
      Pages 551-570
    7. Multithreaded, Parallel, and Async Programming

      • Andrew Troelsen, Phil Japikse
      Pages 571-622

About this book

Welcome to the most comprehensive foundational guide available on the topic of C# coding and .NET. This book goes beyond “do this, to achieve this” to drill down into the core stuff that makes a good developer, great. This expanded 11th edition delivers loads of new content on Entity Framework, Razor Pages, Web APIs and more. You will find the latest C# 10 and .NET 6 features served up with plenty of “behind the curtain” discussion designed to expand developers’ critical thinking skills when it comes to their craft. Coverage of ASP.NET Core, Entity Framework Core, and more sits alongside the latest updates to the new unified .NET platform, from performance improvements to Windows Desktop apps on .NET 6, updates in XAML tooling, and expanded coverage of data files and data handling. Going beyond the latest features in C# 10, all code samples are rewritten for this latest release.

Dive in and discover why this essential classic is a favorite of C# developers worldwide. Gain a solid foundation in object-oriented development techniques, attributes and reflection, generics and collections, and numerous advanced topics not found in other texts (such as CIL opcodes and emitting dynamic assemblies). Pro C# 10 with .NET 6 will build your coding confidence putting C# into practice, and exploring the .NET universe and its vast potential on your own terms.

What You Will Learn

  • Explore C# 10 features and updates in records and record structs, global and implicit using directives, file level namespaces, extended property patterns, and more
  • Develop applications with C# and modern frameworks for services, web, and smart client applications
  • Hit the ground running with ASP.NET Core web applications using MVC and Razor Pages, including view components, custom tag helpers, custom validation, GDPR support, and areas
  • Build ASP.NET RESTful services complete with versioning, enhanced swagger, and basic authentication
  • Embrace Entity Framework Core for building real-world, data-centric applications, with deeply expanded coverage new to this edition including SQL Server temporal table support
  • Dive into Windows Desktop Apps on .NET 6 using Windows Presentation Foundation
  • Understand the philosophy behind .NET
  • Discover the new features in .NET 6, including single file applications, smaller container images, and more

Who This Book Is For

Developers of any level who want to either learn C# and .NET or want to take their skills to the next level.

“Amazing! Provides easy-to-follow explanations and examples. I remember reading the first version of this book; this is a ‘must-have’ for your collection if you are learning .NET!”

– Rick McGuire, Senior Application Development Manager, Microsoft

“Phil is a journeyman programmer who brings years of experience and a passion for teaching to make this fully revised and modernized ‘classic’ a ‘must-have’. Any developer who wants full-spectrum, up-to-date coverage of both the C# language and how to use it with .NET and ASP.NET Core should get this book.”

– Brian A. Randell, Partner, MCW Technologies and Microsoft MVP


  • C# 8.0
  • C# 9
  • .NET 5
  • .NET Core 3.0
  • Object oriented programming with C#
  • C#
  • Microsoft
  • .NET Core
  • Entity Framework
  • WCF
  • WPF
  • .NET 4.7
  • C# 7.1
  • C# 7.0
  • Visual Studio

Authors and Affiliations

  • Chambersburg, USA

    Andrew Troelsen

  • West Chester, USA

    Phil Japikse

About the authors

Andrew Troelsen has more than 20 years of experience in the software industry. Over this time he has worked as a developer, educator, author, public speaker, and now team lead and lead engineer. He is the author of numerous books in the Microsoft universe. He holds a master of science degree in software engineering (MSSE) from the University of St. Thomas and another in computational linguistics (CLMS) from the University of Washington.  

Phil Japikse is an international speaker, Microsoft MVP, ASPInsider, Professional Scrum Trainer, and a passionate member of the developer community. He is the lead director of the Cincinnati .NET User Group and the Cincinnati Software Architect Roundtable, and he founded the CincyDeliver conference, Currently, he works as a Director of Consulting and Enterprise Architect. Follow him on his blog ( or on Twitter @skimedic.

Bibliographic Information

Buying options

Softcover Book USD 49.99
Price excludes VAT (USA)