An accessible guide for beginner-to-intermediate programmers to the concepts, real-world applications, and latest features of C# 13 and .NET 9, with hands-on exercises using Visual Studio and Visual Studio Code
Purchase of the print or Kindle book includes a free eBook in PDF format
Key FeaturesExplore the newest additions to C# 13, the .NET 9 class libraries, and Entity Framework Core 9Build professional websites and services with ASP.NET Core 9 and BlazorEnhance your skills with step-by-step code examples and best practices tipsBook DescriptionThis Packt bestseller continues to be the definitive guide to modern cross-platform development. The 9th edition of C# 13 and .NET 9 – Modern Cross-Platform Development Fundamentals has been updated to cover the latest features and improvements in .NET 9 and C# 13. You'll start by mastering object-oriented programming, learning how to write, test, and debug functions, and implementing interfaces. You'll then dive into .NET APIs for data management, filesystem operations, and serialization.
This latest edition integrates .NET 9 enhancements into its faster exceptions and new LINQ methods. New ASP.NET Core 9 features include optimized static assets, built-in OpenAPI document generation, and the HybridCache.
Practical examples, such as building websites and services with ASP.NET Core, have been refreshed to utilize the latest .NET 9 features. The book also introduces Blazor, with its new unified hosting model for unparalleled code reusability. With these updates, you'll learn how to build robust applications and services efficiently and effectively.
By the end of this book, you'll have the knowledge and confidence to create professional and high-performance web applications using the latest technologies in C# 13 and .NET 9.
What you will learnDiscover the new features of .NET 9, including more flexible params and new LINQ like CountBy and IndexLeverage the new ASP.NET Core 9 features for optimized static assets, OpenAPI document generation, and HybridCacheUtilize the native AOT publish capability for faster startup and reduced memory footprintBuild rich web user interface experiences using Blazor in ASP.NET Core 9Integrate and update databases in your applications using Entity Framework Core 9 modelsQuery and manipulate data using LINQBuild powerful services using Minimal APIsWho this book is forThis book is aimed at beginner to intermediate-level C# and .NET developers. While prior exposure to C# or .NET is not a prerequisite, a general understanding of programming concepts will be beneficial.
If you want to learn more technologies for building modern .NET projects like gRPC, SignalR, and .NET MAUI, read Mark's Apps and Services with .NET 8 book next; and if you aim to become a professional .NET developer quickly or mainly work on team projects, read his other book, Tools and Skills for .NET 8.
Table of ContentsHello, C#! Welcome, .NET!Speaking C#Controlling Flow, Converting Types, and Handling ExceptionsWriting, Debugging, and Testing FunctionsBuilding Your Own Types with Object-Oriented ProgrammingImplementing Interfaces and Inheriting ClassesPackaging and Distributing .
Mark J Price is a former Microsoft Certified Trainer (MCT) and current Microsoft Specialist: Programming in C# and Architecting Microsoft Azure Solutions, with more than 20 years' of educational and programming experience.
Since 1993 Mark has passed more than 80 Microsoft programming exams and specializes in preparing others to pass them too. His students range from professionals with decades of experience to 16-year-old apprentices with none. Mark successfully guides all of them by combining educational skills with real-world experience consulting and developing systems for enterprises worldwide.
Between 2001 and 2003 Mark was employed full-time to write official courseware for Microsoft in Redmond, USA. Mark's team wrote the first training courses for C# while it was still an early alpha version. While with Microsoft he taught "train-the-trainer" classes to get other MCTs up-to-speed on C# and .NET.
Currently, Mark creates and delivers training courses for Episerver's Digital Experience Platform, the best .NET CMS for Digital Marketing and E-commerce.
In 2010 Mark studied for a Post-Graduate Certificate in Education (PGCE). He taught GCSE and A-Level mathematics in two London secondary schools. Mark holds a Computer Science BSc. Hons. Degree from the University of Bristol, UK.
"C# 13 and .NET 9 – Modern Cross-Platform Development Fundamentals" by Mark J. Price is undoubtedly the best book for learning C#, regardless of your programming experience. This comprehensive guide strikes an impressive balance, making it accessible for beginners while remaining engaging and informative for seasoned developers.
Mark's approach is refreshingly direct, allowing readers to dive straight into the material. For experienced programmers new to C#, the book provides clear guidance on where to focus, respecting your time and existing knowledge. Throughout each chapter, the author generously sprinkles invaluable best practices and useful tips, which are particularly beneficial for those new to C# and.NET ecosystems, helping to prevent the development of bad habits and code smells.
The book's value extends far beyond its pages. Readers gain access to: Additional online sections maintained by the author An up-to-date errata Downloadable code exercises Direct support from Mark himself via Discord
Mark's commitment to his readers is evident in his quick responses to corrections and his respectful, patient interactions with learners.
For those hesitating, this book is an investment worth making. It serves as the ultimate entry point into C#, a powerful language, and the vastly improved.NET framework. Whether you're a complete beginner or an experienced programmer looking to add C# to your toolkit, this book stands out as the best resource for mastering C# and modern cross-platform development.