Description

Packt C# 9 and Net 5.jpg

 

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.

What will learn?

 

  • Build your own types with object-oriented programming
  • Query and manipulate data using LINQ
  • Build websites and services using ASP.NET Core 5
  • Create intelligent apps using machine learning
  • Use Entity Framework Core and work with relational databases
  • Discover Windows app development using the Universal Windows Platform and XAML
  • Build rich web experiences using the Blazor framework
  • Build mobile applications for iOS and Android using Xamarin.Forms

 

 

What are the key takeaways from your book?

.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.

 

How can this book help those wanting to learn C# 9 and .NET 5?

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.

Who is this book for?

 

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.

 

Key Features

  • Explore the newest additions to C# 9, the .NET 5 class library, Entity Framework Core and Blazor
  • Strengthen your command of ASP.NET Core 5.0 and create professional websites and services
  • Build cross-platform apps for Windows, macOS, Linux, iOS, and Android

 

 

Publisher's Note: Microsoft stopped supporting .NET 5 in May 2022. The newer 7th edition of this book is available that covers .NET 7 (end-of-life May 2024) or .NET 6 (end-of-life November 2024), with C# 11 and EF Core 7.

Table of Contents

 

  1. Hello, C#! Welcome, .NET Core!
  2. Speaking C#
  3. Controlling Flow and Converting Types
  4. Writing, Debugging, and Testing Functions
  5. Building Your Own Types with Object-Oriented Programming
  6. Implementing Interfaces and Inheriting Classes
  7. Understanding and Packaging .NET Types
  8. Working with Common .NET Types
  9. Working with Files, Streams, and Serialization