For this fifth edition, we went through the whole book and brought everything up-to-date for C# 9 and .NET 5.
For the C# language, the fifth edition covers top-level programs, records, and improved pattern matching for a more functional style of writing code.
For the .NET libraries, it covers working with images using ImageSharp and EF Core features like scaffolding entity models using the dotnet-ef tool, filtered includes, and simplified methods to get the generated SQL.
The biggest addition is a whole new chapter about using Blazor Server and Blazor WebAssembly to build components for web user interfaces.
.NET 5 has definitively overtaken .NET Framework as Microsoft’s best .NET platform. Some features of C# 8 and 9 are not supported for .NET Framework but are fully supported for .NET 5. .NET Framework 4.8 is the last major version of that platform.
Developers should learn the .NET 5 platform today to prepare for Microsoft’s unification of all its .NET variants with .NET 6 due in November 2021.
This book provides comprehensive, detailed information about modern .NET, along with all three parts that a developer needs to learn; the C# programming language, the .NET class libraries, and the common App Models for building real applications.
As an educator, I am able to explain a topic in an easy to learn way and to enough depth that the reader understands the concept and has seen a working example. This is all without being overwhelmed by unnecessary detail that can be found online in official documentation if the readers choose to dig deeper.
A comprehensive guide for beginners to learn the key concepts, real-world applications, and latest features of C# 9 and .NET 5 with hands-on exercises using VS Code
In C# 9 and .NET 5 – Modern Cross-Platform Development, Fifth Edition, expert teacher Mark J. Price gives you everything you need to start programming C# applications.
This latest edition uses the popular Visual Studio Code editor to work across all major operating systems. It is fully updated and expanded with a new chapter on the Microsoft Blazor framework.
The book's first part teaches the fundamentals of C#, including object-oriented programming and new C# 9 features such as top-level programs, target-typed new object instantiation, and immutable types using the record keyword. Part 2 covers the .NET APIs, for performing tasks like managing and querying data, monitoring and improving performance, and working with the file system, async streams, serialization, and encryption. Part 3 provides examples of cross-platform apps you can build and deploy, such as websites and services using ASP.NET Core or mobile apps using Xamarin.Forms. The best type of application for learning the C# language constructs and many of the .NET libraries is one that does not distract with unnecessary application code. For that reason, the C# and .NET topics covered in Chapters 1 to 13 feature console applications. In Chapters 14 to 20, having mastered the basics of the language and libraries, you will build practical applications using ASP.NET Core, Model-View-Controller (MVC), and Blazor.
By the end of the book, you will have acquired the understanding and skills you need to use C# 9 and .NET 5 to create websites, services, and mobile apps.
This book is best for C# and .NET beginners, or programmers who have worked with C# in the past but feel left behind by the changes in the past few years. This book doesn't expect you to have any C# or .NET experience; however, you should have a general understanding of programming.
Students and professionals with a science, technology, engineering, or mathematics (STEM) background can certainly benefit from this book.
(N.B. Please use the Look Inside option to see further chapters)
"Mark Price's extraordinary book covers every aspect of C# 9 and .NET 5. It is filled with step-by-step demonstrations and will be of tremendous value both to those who want to learn C# and to more experienced C# programmers making the transition to C# 9. Highly recommended!"--
Jesse Liberty - author of Programming C# and Learning C# (O'Reilly Media)
Mark J. Price is a Microsoft Specialist: Programming in C# and Architecting Microsoft Azure Solutions, with over 20 years' experience. Since 1993, he has passed more than 80 Microsoft programming exams and specializes in preparing others to pass them. Between 2001 and 2003, Mark was employed to write official courseware for Microsoft in Redmond, USA. His 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. Mark holds a Computer Science BSc. Hons. Degree and a Postgraduate Certificate in Education.